Commit 10f79434 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(audit) Load data at display

Only load audit security data when tab is opened, but load it each time
 it’s opened (meaning it’s always up to date)

issue #6010
parent 25d01c7c
......@@ -60,6 +60,10 @@ class auditSecurity extends simplePlugin
_('Time'),
_('Result'),
]);
}
protected function loadEvents()
{
$events = objects::ls(
'auditEvent',
[
......@@ -98,6 +102,12 @@ class auditSecurity extends simplePlugin
$this->fdAuditSecurityLog = $events;
}
public function execute (): string
{
$this->loadEvents();
return parent::execute();
}
protected function getUid (): string
{
if (isset($this->parent)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment