chg: [events] Simplified attribute_count condition for `minimal` filter

parameter
pull/6412/head
mokaddem 2020-10-05 09:49:56 +02:00
parent 5cb58a500e
commit 22ced01083
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -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]
]
];