fix: [user:add/edit] Correctly index orgs by their IDs

pull/121/head
Sami Mokaddem 2022-12-08 10:54:55 +01:00
parent 4ab9761fb5
commit 561f6d1c77
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class UsersController extends AppController
'organisation' => $this->Users->Organisations->find('list', [
'sort' => ['name' => 'asc'],
'conditions' => $org_conditions
])
])->toArray()
];
$this->set(compact('dropdownData'));
$this->set('defaultRole', $defaultRole['id'] ?? null);
@ -247,7 +247,7 @@ class UsersController extends AppController
'organisation' => $this->Users->Organisations->find('list', [
'sort' => ['name' => 'asc'],
'conditions' => $org_conditions
])
])->toArray()
];
$this->set(compact('dropdownData'));
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');