Loading module/Application/src/Controller/ParametreController.php +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ class ParametreController extends AbstractController $annee->setActive(!$annee->isActive()); $this->getServiceAnnee()->save($annee); $this->getServiceAnnee()->resetChoixAnnees(); return new JsonModel([ 'message' => 'Action effectuée', Loading module/Application/src/Service/AnneeService.php +10 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,16 @@ class AnneeService extends AbstractEntityService public function resetChoixAnnees(): self { $session = $this->getSessionContainer(); $session->choixAnnees = null; return $this; } /** * Retourne la liste des ID des années sélectionnables */ Loading Loading
module/Application/src/Controller/ParametreController.php +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ class ParametreController extends AbstractController $annee->setActive(!$annee->isActive()); $this->getServiceAnnee()->save($annee); $this->getServiceAnnee()->resetChoixAnnees(); return new JsonModel([ 'message' => 'Action effectuée', Loading
module/Application/src/Service/AnneeService.php +10 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,16 @@ class AnneeService extends AbstractEntityService public function resetChoixAnnees(): self { $session = $this->getSessionContainer(); $session->choixAnnees = null; return $this; } /** * Retourne la liste des ID des années sélectionnables */ Loading