Loading module/Application/src/Application/Controller/IndexController.php +5 −4 Original line number Diff line number Diff line Loading @@ -23,14 +23,13 @@ class IndexController extends AbstractController use ParametresServiceAwareTrait; /** * * @return type */ public function indexAction() { $role = $this->getServiceContext()->getSelectedIdentityRole(); $role = $this->serviceUserContext->getSelectedIdentityRole(); $documentation = [ 'vacataires' => $this->getServiceParametres()->get('doc-intervenant-vacataires'), Loading Loading @@ -68,7 +67,9 @@ class IndexController extends AbstractController if ($role instanceof Role && $role->getIntervenant()) { $intervenant = $this->getServiceIntervenant()->getByCode($role->getIntervenant()->getCode()); if ($intervenant) { $this->serviceUserContext->setNextSelectedIdentityRole($intervenant->getStatut()->getRoleId()); //Correction mauvais refresh du role lors du changement d'année $this->serviceUserContext->setSelectedIdentityRole($intervenant->getStatut()->getRoleId()); //$this->serviceUserContext->setNextSelectedIdentityRole($intervenant->getStatut()->getRoleId()); } } } Loading Loading
module/Application/src/Application/Controller/IndexController.php +5 −4 Original line number Diff line number Diff line Loading @@ -23,14 +23,13 @@ class IndexController extends AbstractController use ParametresServiceAwareTrait; /** * * @return type */ public function indexAction() { $role = $this->getServiceContext()->getSelectedIdentityRole(); $role = $this->serviceUserContext->getSelectedIdentityRole(); $documentation = [ 'vacataires' => $this->getServiceParametres()->get('doc-intervenant-vacataires'), Loading Loading @@ -68,7 +67,9 @@ class IndexController extends AbstractController if ($role instanceof Role && $role->getIntervenant()) { $intervenant = $this->getServiceIntervenant()->getByCode($role->getIntervenant()->getCode()); if ($intervenant) { $this->serviceUserContext->setNextSelectedIdentityRole($intervenant->getStatut()->getRoleId()); //Correction mauvais refresh du role lors du changement d'année $this->serviceUserContext->setSelectedIdentityRole($intervenant->getStatut()->getRoleId()); //$this->serviceUserContext->setNextSelectedIdentityRole($intervenant->getStatut()->getRoleId()); } } } Loading