Loading CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ Journal des modifications - [FIX] Correction du ViewHelper SelectHelper (ne suivant pas le lien de substitution) - Ajout de la modalité de formation mixte - Ajout d'une garde pour éviter les inscriptions répétées - Changement des notifications envoyées à propos des listes des formations 5.2.3 ----- Loading doc/release-notes/v5.2.4.md +5 −1 Original line number Diff line number Diff line Loading @@ -16,4 +16,8 @@ git fetch --tags && git checkout --force 5.2.4 && bash ./install.sh ## 2. Dans la base de données RAS No newline at end of file ```sql INSERT INTO formation_etat (code, libelle, description, icone, couleur, ordre) VALUES ('I', 'Session imminente', 'Session imminente', 'icon icon-calendirer', '#FECACA', 4); update formation_etat set ordre=5 where code='C'; update formation_etat set ordre=6 where code='A'; ``` No newline at end of file module/Formation/src/Formation/Controller/InscriptionController.php +2 −2 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ class InscriptionController extends AbstractController if (count($listePrincipale) < $session->getTailleListePrincipale()) { $inscription->setListe(Inscription::LISTE_PRINCIPALE); $this->getInscriptionService()->update($inscription); $this->getNotificationService()->triggerInscriptionListePrincipale($inscription); if ($session->isFinInscription()) $this->getNotificationService()->triggerInscriptionListePrincipale($inscription); } else { $this->flashMessenger()->addErrorMessage('La liste principale est déjà complète.'); } Loading @@ -193,7 +193,7 @@ class InscriptionController extends AbstractController if (count($listePrincipale) < $session->getTailleListeComplementaire()) { $inscription->setListe(Inscription::LISTE_COMPLEMENTAIRE); $this->getInscriptionService()->update($inscription); $this->getNotificationService()->triggerInscriptionListeComplementaire($inscription); if ($session->isFinInscription()) $this->getNotificationService()->triggerInscriptionListeComplementaire($inscription); } else { $this->flashMessenger()->addErrorMessage('La liste complémentaire est déjà complète.'); } Loading module/Formation/src/Formation/Controller/SessionController.php +5 −1 Original line number Diff line number Diff line Loading @@ -213,9 +213,13 @@ class SessionController extends AbstractController switch ($session->getEtat()->getCode()) { case Etat::CODE_FERME : $this->getNotificationService()->triggerSessionImminente($session); $this->getNotificationService()->triggerInscriptionsListePrincipale($session); $this->getNotificationService()->triggerInscriptionsListeComplementaire($session); $this->getNotificationService()->triggerInscriptionEchec($session); break; case Etat::CODE_IMMINENT : $this->getNotificationService()->triggerSessionImminente($session); break; case Etat::CODE_CLOTURER : $this->getNotificationService()->triggerSessionTerminee($session); break; Loading module/Formation/src/Formation/Entity/Db/Etat.php +1 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ class Etat { const CODE_PREPARATION = 'P'; const CODE_OUVERTE = 'O'; const CODE_FERME = 'F'; const CODE_NOTIFIER = 'N'; const CODE_CLOTURER = 'C'; const CODE_ANNULEE = 'A'; Loading Loading
CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ Journal des modifications - [FIX] Correction du ViewHelper SelectHelper (ne suivant pas le lien de substitution) - Ajout de la modalité de formation mixte - Ajout d'une garde pour éviter les inscriptions répétées - Changement des notifications envoyées à propos des listes des formations 5.2.3 ----- Loading
doc/release-notes/v5.2.4.md +5 −1 Original line number Diff line number Diff line Loading @@ -16,4 +16,8 @@ git fetch --tags && git checkout --force 5.2.4 && bash ./install.sh ## 2. Dans la base de données RAS No newline at end of file ```sql INSERT INTO formation_etat (code, libelle, description, icone, couleur, ordre) VALUES ('I', 'Session imminente', 'Session imminente', 'icon icon-calendirer', '#FECACA', 4); update formation_etat set ordre=5 where code='C'; update formation_etat set ordre=6 where code='A'; ``` No newline at end of file
module/Formation/src/Formation/Controller/InscriptionController.php +2 −2 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ class InscriptionController extends AbstractController if (count($listePrincipale) < $session->getTailleListePrincipale()) { $inscription->setListe(Inscription::LISTE_PRINCIPALE); $this->getInscriptionService()->update($inscription); $this->getNotificationService()->triggerInscriptionListePrincipale($inscription); if ($session->isFinInscription()) $this->getNotificationService()->triggerInscriptionListePrincipale($inscription); } else { $this->flashMessenger()->addErrorMessage('La liste principale est déjà complète.'); } Loading @@ -193,7 +193,7 @@ class InscriptionController extends AbstractController if (count($listePrincipale) < $session->getTailleListeComplementaire()) { $inscription->setListe(Inscription::LISTE_COMPLEMENTAIRE); $this->getInscriptionService()->update($inscription); $this->getNotificationService()->triggerInscriptionListeComplementaire($inscription); if ($session->isFinInscription()) $this->getNotificationService()->triggerInscriptionListeComplementaire($inscription); } else { $this->flashMessenger()->addErrorMessage('La liste complémentaire est déjà complète.'); } Loading
module/Formation/src/Formation/Controller/SessionController.php +5 −1 Original line number Diff line number Diff line Loading @@ -213,9 +213,13 @@ class SessionController extends AbstractController switch ($session->getEtat()->getCode()) { case Etat::CODE_FERME : $this->getNotificationService()->triggerSessionImminente($session); $this->getNotificationService()->triggerInscriptionsListePrincipale($session); $this->getNotificationService()->triggerInscriptionsListeComplementaire($session); $this->getNotificationService()->triggerInscriptionEchec($session); break; case Etat::CODE_IMMINENT : $this->getNotificationService()->triggerSessionImminente($session); break; case Etat::CODE_CLOTURER : $this->getNotificationService()->triggerSessionTerminee($session); break; Loading
module/Formation/src/Formation/Entity/Db/Etat.php +1 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ class Etat { const CODE_PREPARATION = 'P'; const CODE_OUVERTE = 'O'; const CODE_FERME = 'F'; const CODE_NOTIFIER = 'N'; const CODE_CLOTURER = 'C'; const CODE_ANNULEE = 'A'; Loading