mirror of https://github.com/MISP/MISP
chg: [galaxies] slightly saner lookup
parent
0d6d3cb980
commit
b1d5b8baff
|
@ -437,10 +437,11 @@ class GalaxiesController extends AppController
|
|||
)), 'GalaxyCluster');
|
||||
$synonyms = $this->Galaxy->GalaxyCluster->GalaxyElement->find('all', array(
|
||||
'conditions' => array(
|
||||
'GalaxyElement.galaxy_cluster_id' => array_column($data, 'id'),
|
||||
'GalaxyElement.key' => 'synonyms'
|
||||
'GalaxyElement.key' => 'synonyms',
|
||||
$conditions
|
||||
),
|
||||
'fields' => ['GalaxyElement.galaxy_cluster_id', 'GalaxyElement.value'],
|
||||
'contain' => 'GalaxyCluster',
|
||||
'recursive' => -1
|
||||
));
|
||||
$sortedSynonyms = array();
|
||||
|
|
Loading…
Reference in New Issue