mirror of https://github.com/MISP/MISP
chg: [logs:index] Allow to filter based on the created field in the UI
parent
d63846c237
commit
dccfc58a6c
|
@ -101,6 +101,9 @@ class LogsController extends AppController
|
|||
$this->paginate['conditions']['Log.action'] = $validFilters[$this->params['named']['filter']]['values'];
|
||||
}
|
||||
foreach ($filters as $key => $value) {
|
||||
if ($key === 'created') {
|
||||
$key = 'created >=';
|
||||
}
|
||||
$this->paginate['conditions']["Log.$key"] = $value;
|
||||
}
|
||||
$this->set('validFilters', $validFilters);
|
||||
|
|
Loading…
Reference in New Issue