mirror of https://github.com/MISP/MISP
fix: [sighting] Return just requested sighting
parent
338de3178c
commit
1bc02930cf
|
@ -232,6 +232,7 @@ class Sighting extends AppModel
|
|||
return [];
|
||||
}
|
||||
|
||||
$conditions['Sighting.id'] = $ids;
|
||||
$sightings = $this->find('all', [
|
||||
'recursive' => -1,
|
||||
'conditions' => $conditions,
|
||||
|
@ -1508,7 +1509,7 @@ class Sighting extends AppModel
|
|||
}
|
||||
return $this->Organisation->find('list', [
|
||||
'fields' => ['Organisation.uuid', 'Organisation.id'],
|
||||
'conditions' => ['Organisation.uuid' => array_unique(array_column($organisations, 'uuid'))],
|
||||
'conditions' => ['Organisation.uuid' => array_unique(array_column($organisations, 'uuid'), SORT_REGULAR)],
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue