fix: [internal] sharing_group graph missing org_ids - throwing notices

pull/6783/head
iglocska 2020-12-18 12:05:20 +01:00
parent 9d537c989a
commit 8b318320f7
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class SharingGroup extends AppModel
$sgs = $this->find('all', array(
'contain' => ['SharingGroupOrg' => ['org_id']],
'conditions' => $conditions,
'fields' => ['SharingGroup.id', 'SharingGroup.name'],
'fields' => ['SharingGroup.id', 'SharingGroup.name', 'SharingGroup.org_id'],
'order' => 'SharingGroup.name ASC'
));
return $this->appendOrgsAndServers($sgs, ['id', 'name'], []);