fix: [broods:add] Correctly index organisations by their ID

develop-unstable
Sami Mokaddem 2023-01-11 09:56:39 +01:00
parent 5297c8206c
commit 9506142de5
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class BroodsController extends AppController
$dropdownData = [
'organisation' => $this->Organisations->find('list', [
'sort' => ['name' => 'asc']
])
])->toArray()
];
$this->set(compact('dropdownData'));
}
@ -72,7 +72,7 @@ class BroodsController extends AppController
$dropdownData = [
'organisation' => $this->Organisations->find('list', [
'sort' => ['name' => 'asc']
])
])->toArray()
];
$this->set(compact('dropdownData'));
$this->render('add');