Commit 3950544c authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Retour en arrière : toutes les structures doivent être affichées ici

parent 6b4989fe
Loading
Loading
Loading
Loading
+3 −1
Changes for module/Application/src/View/Helper/UserProfileSelectRadioItem.php: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -35,8 +35,10 @@ class UserProfileSelectRadioItem extends UnicaenAuthViewHelper
        if ($this->role->getPeutChangerStructure() && $perimetre && $perimetre->isEtablissement()) {
            $selectClass = 'user-profile-select-input-structure';

            $select = new Structure('structure-' . $this->role->getRoleId());
            $select = new \Laminas\Form\Element\Select('structure-' . $this->role->getRoleId());
            $select
                ->setEmptyOption("(Aucune)")
                ->setValueOptions($this->getStructures())
                ->setValue($this->getStructure() ? $this->getStructure()->getId() : null)
                ->setAttribute('class', $selectClass)
                ->setAttribute('onchange', 'Util.userProfileStructureChange(this)')