fix: [sharingGroups:addOrg] Use correct index to add to the group

develop-unstable
Sami Mokaddem 2023-02-16 14:55:43 +01:00
parent 62b2a1b264
commit 88abecfe8f
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class SharingGroupsController extends AppController
'organisation' => $this->SharingGroups->Organisations->find('list', [
'sort' => ['name' => 'asc'],
'conditions' => $conditions
])
])->toArray()
];
if ($this->request->is('post')) {
$input = $this->request->getData();
@ -280,7 +280,7 @@ class SharingGroupsController extends AppController
'conditions' => [
'id' => $user['organisation_id']
]
]);
])->toArray();
}
return $organisations;
}