Loading module/Application/src/Application/View/Helper/UserProfileSelectRadioItem.php +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ class UserProfileSelectRadioItem extends UnicaenAuthViewHelper { $html = parent::render(); $perimetre = $this->role->getPerimetre(); $perimetre = $this->role ? $this->role->getPerimetre() : null; if ($this->role->getPeutChangerStructure() && $perimetre && $perimetre->isEtablissement()) { $selectClass = 'user-profile-select-input-structure'; Loading module/Application/src/Application/View/Helper/UserProfileSelectRadioItemFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ class UserProfileSelectRadioItemFactory extends UserProfileSelectFactory $role = $this->getServiceContext()->getSelectedIdentityRole(); if ($role && $role->getPerimetre()->isEtablissement()) { if ($role && $role->getPerimetre() && $role->getPerimetre()->isEtablissement()) { $service->setStructure($this->getServiceContext()->getStructure(false)); } Loading Loading
module/Application/src/Application/View/Helper/UserProfileSelectRadioItem.php +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ class UserProfileSelectRadioItem extends UnicaenAuthViewHelper { $html = parent::render(); $perimetre = $this->role->getPerimetre(); $perimetre = $this->role ? $this->role->getPerimetre() : null; if ($this->role->getPeutChangerStructure() && $perimetre && $perimetre->isEtablissement()) { $selectClass = 'user-profile-select-input-structure'; Loading
module/Application/src/Application/View/Helper/UserProfileSelectRadioItemFactory.php +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ class UserProfileSelectRadioItemFactory extends UserProfileSelectFactory $role = $this->getServiceContext()->getSelectedIdentityRole(); if ($role && $role->getPerimetre()->isEtablissement()) { if ($role && $role->getPerimetre() && $role->getPerimetre()->isEtablissement()) { $service->setStructure($this->getServiceContext()->getStructure(false)); } Loading