Commit 8954c7a9 authored by tguillon's avatar tguillon

Correction de la liste des entités proposées.

parent cd4be57c
......@@ -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