Commit ce6c640d authored by Florian Joriot's avatar Florian Joriot
Browse files

Correction changement Année dans parametre

parent 27bc8f1e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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',
+10 −0
Original line number Diff line number Diff line
@@ -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
     */