chg: [internal] Do not fetch event reports for view

pull/6417/head
Jakub Onderka 2020-10-10 14:19:39 +02:00
parent 150ccfcd73
commit 897c2dc225
1 changed files with 2 additions and 0 deletions

View File

@ -1082,6 +1082,7 @@ class EventsController extends AppController
$conditions['includeAllTags'] = true;
$conditions['includeGranularCorrelations'] = 1;
$conditions['includeEventCorrelations'] = false;
$conditions['noEventReports'] = true; // event reports for view are loaded dynamically
if (!empty($filters['includeRelatedTags'])) {
$this->set('includeRelatedTags', 1);
$conditions['includeRelatedTags'] = 1;
@ -1524,6 +1525,7 @@ class EventsController extends AppController
$conditions['includeAttachments'] = true;
} else {
$conditions['includeAllTags'] = true;
$conditions['noEventReports'] = true; // event reports for view are loaded dynamically
}
$deleted = 0;
if (isset($this->params['named']['deleted'])) {