fix: [eventReport:reportFromEvent] Correctly apply filter conditions

Fix #6631
pull/6632/head
mokaddem 2020-11-20 10:59:54 +01:00
parent 23695d1e3f
commit 50185e45f0
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 1 deletions

View File

@ -32,13 +32,14 @@
private function getAttributes()
{
$filterConditions = $this->__eventModel->Attribute->buildFilterConditions($this->__user, $this->__options['conditions']);
$options = [
'includeWarninglistHits' => true,
'includeSightings' => true,
'includeCorrelations' => true,
'conditions' => [
'Attribute.event_id' => $this->__options['event_id'],
$this->__options['conditions']
$filterConditions
]
];
$this->attributes = $this->__eventModel->Attribute->fetchAttributes($this->__user, $options);