mirror of https://github.com/MISP/MISP
chg: [events] Simplified attribute_count condition for `minimal` filter
parameterpull/6412/head
parent
5cb58a500e
commit
22ced01083
|
@ -631,7 +631,7 @@ class EventsController extends AppController
|
|||
$eventReportQuery = sprintf('EXISTS (SELECT id, deleted FROM %s WHERE %s.event_id = Event.id and %s.deleted = 0)', $tableName, $tableName, $tableName);
|
||||
$this->paginate['conditions']['AND'][] = [
|
||||
'OR' => [
|
||||
['NOT' => [ 'Event.attribute_count' => 0]],
|
||||
['Event.attribute_count >' => 0],
|
||||
[$eventReportQuery]
|
||||
]
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue