mirror of https://github.com/MISP/MISP
fix: [sighting] Grouping sighting fetch for tags
parent
9fb2b15c90
commit
0c722243e5
|
@ -365,7 +365,7 @@ class Sighting extends AppModel
|
|||
'contain' => [ucfirst($context) . 'Tag'],
|
||||
'conditions' => $conditions,
|
||||
'fields' => [ucfirst($context) . 'Tag.tag_id', 'date', 'sighting_count'],
|
||||
'group' => [ucfirst($context) . 'Tag.id', 'date'],
|
||||
'group' => [ucfirst($context) . 'Tag.tag_id', 'date'],
|
||||
'order' => ['date'], // from oldest
|
||||
]);
|
||||
unset($this->virtualFields['date'], $this->virtualFields['sighting_count']);
|
||||
|
|
Loading…
Reference in New Issue