mirror of https://github.com/MISP/MISP
fix: [internal] sharing_group graph missing org_ids - throwing notices
parent
9d537c989a
commit
8b318320f7
|
@ -207,7 +207,7 @@ class SharingGroup extends AppModel
|
||||||
$sgs = $this->find('all', array(
|
$sgs = $this->find('all', array(
|
||||||
'contain' => ['SharingGroupOrg' => ['org_id']],
|
'contain' => ['SharingGroupOrg' => ['org_id']],
|
||||||
'conditions' => $conditions,
|
'conditions' => $conditions,
|
||||||
'fields' => ['SharingGroup.id', 'SharingGroup.name'],
|
'fields' => ['SharingGroup.id', 'SharingGroup.name', 'SharingGroup.org_id'],
|
||||||
'order' => 'SharingGroup.name ASC'
|
'order' => 'SharingGroup.name ASC'
|
||||||
));
|
));
|
||||||
return $this->appendOrgsAndServers($sgs, ['id', 'name'], []);
|
return $this->appendOrgsAndServers($sgs, ['id', 'name'], []);
|
||||||
|
|
Loading…
Reference in New Issue