Commit 38545292 authored by Théo GUILLON's avatar Théo GUILLON

Merge branch '165-affichage-des-entites-dans-le-menu-pour-changer-d-entite' into 'master'

Resolve "Affichage des entités dans le menu pour changer d'entité"

Closes #165

See merge request web-DPO/web-DPO!136
parents cd4be57c 8954c7a9
......@@ -410,7 +410,9 @@
]
];
if (count($organisations) <= 5) {
$listeMesOrganisation = [];
if (count($organisations) <= 0) {
foreach ($organisations as $datas) {
$mesEntites[$datas['Organisation']['raisonsociale']] = [
'url' => [
......@@ -428,6 +430,10 @@
'data-toggle' => 'modal',
'data-target' => '#modalChangeEntite'
];
foreach ($organisations as $datas) {
$listeMesOrganisation[$datas['Organisation']['id']] = $datas['Organisation']['raisonsociale'];
}
}
if (!empty($mesEntites)) {
......@@ -760,7 +766,7 @@
echo $this->WebcilForm->input('Organisation.organisationcible', [
'id' => 'organisationcible',
'options' => $listeOrganisations,
'options' => $listeMesOrganisation,
'class' => 'usersDeroulant transformSelect form-control',
'required' => true,
'empty' => true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment