mirror of https://github.com/MISP/MISP
chg: [internal] Fetch less columns for Tag for event index
parent
a78722bb23
commit
fc2c6c7147
|
@ -549,6 +549,7 @@ class Event extends AppModel
|
|||
$tags = $this->EventTag->Tag->find('all', array(
|
||||
'conditions' => array('Tag.id' => $tagsToFetch),
|
||||
'recursive' => -1,
|
||||
'fields' => ['id', 'name', 'colour', 'is_galaxy'], // fetch just necessary columns
|
||||
'order' => false
|
||||
));
|
||||
$tags = array_column(array_column($tags, 'Tag'), null, 'id');
|
||||
|
|
Loading…
Reference in New Issue