Commit 7f2605f7 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction selecteur de structure dans l'interface de choix de role/connexion

parent 951ee71f
Loading
Loading
Loading
Loading
+4 −1
Changes for module/Application/src/View/Helper/LayoutViewHelper.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -72,6 +72,9 @@ class LayoutViewHelper extends AbstractHtmlElement
            $structures = $this->getStructures();
        }

        $structure = $this->getServiceContext()->getStructure();


        return [
            'utilisateurNom'    => $utilisateur->getDisplayName(),
            'roleNom'           => $roleNom,
@@ -80,7 +83,7 @@ class LayoutViewHelper extends AbstractHtmlElement
            'usurpationEnabled' => $this->isUsurpationEnabled(),
            'usurpationEnCours' => $this->isUsurpationEnCours(),
            'roles'             => $roles,
            'structureId'       => null,
            'structureId'       => $structure ? $structure->getId() : null,
            'structures'        => $structures,
        ];
    }