fix: [broods:edit] Include organisation dropdown data

pull/37/head
mokaddem 2021-01-14 15:33:01 +01:00
parent 6685838308
commit 65252a39ff
1 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,6 @@ class BroodsController extends AppController
'contextFilters' => [
'fields' => [
'pull',
'Organisations.name',
]
],
'contain' => ['Organisations']
@ -64,6 +63,13 @@ class BroodsController extends AppController
return $responsePayload;
}
$this->set('metaGroup', 'Sync');
$this->loadModel('Organisations');
$dropdownData = [
'organisation' => $this->Organisations->find('list', [
'sort' => ['name' => 'asc']
])
];
$this->set(compact('dropdownData'));
$this->render('add');
}