Commit ad76e083 authored by Côme Chilliet's avatar Côme Chilliet

feat(audit) Add filter element for event action

issue #6010
parent 28ff3554
......@@ -52,6 +52,14 @@ class auditManagement extends management
parent::__construct();
$this->filter->addElement(new DateFilterElement($this->filter, 'fdAuditDateTime', _('Date'), date('Y-m-d')));
$items = [];
foreach (logging::$validActions as $validAction) {
$items[$validAction] = [
'name' => $validAction,
'filter' => '(fdAuditAction='.$validAction.')',
];
}
$this->filter->addElement(new CheckBoxesFilterElement($this->filter, _('Action'), $items, '|'));
}
protected function setUpListing ()
......
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