Loading CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ Journal des modifications - Abandon (avant suppression) de la table obsolète doctorant_compl. - Ajout d'un bloc dans l'ecran de proposition de soutenance pour le téléchargement des pré-rapport et du serment - Nouveau document "Serment du docteur" - Ajout d'un nouvel mail intermediare à la clôture des inscriptions + deplacement du mail d'echec d'inscription - [FIX] Retrait de la liste complémentaire du mail d'echec - [FIX] Ordonnancement des séances sur les index des formations et des sessions - [FIX] Correction paramètre de route erronée + suppression bouton inactif Loading module/Formation/src/Formation/Controller/SessionController.php +2 −1 Original line number Diff line number Diff line Loading @@ -226,10 +226,11 @@ class SessionController extends AbstractController case Etat::CODE_FERME : $this->getNotificationService()->triggerInscriptionsListePrincipale($session); $this->getNotificationService()->triggerInscriptionsListeComplementaire($session); $this->getNotificationService()->triggerInscriptionEchec($session); $this->getNotificationService()->triggerInscriptionClose($session); break; case Etat::CODE_IMMINENT : $this->getNotificationService()->triggerSessionImminente($session); $this->getNotificationService()->triggerInscriptionEchec($session); break; case Etat::CODE_CLOTURER : $this->getNotificationService()->triggerSessionTerminee($session); Loading module/Formation/src/Formation/Provider/Template/MailTemplates.php +1 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ class MailTemplates { const INSCRIPTION_ENREGISTREE = "FORMATION_INSCRIPTION_ENREGISTREE"; const INSCRIPTION_LISTE_PRINCIPALE = "FORMATION_INSCRIPTION_LISTE_PRINCIPALE"; const INSCRIPTION_LISTE_COMPLEMENTAIRE = "FORMATION_INSCRIPTION_LISTE_COMPLEMENTAIRE"; const INSCRIPTION_CLOSE = "FORMATION_INSCRIPTION_CLOSE"; const INSCRIPTION_ECHEC = "FORMATION_INSCRIPTION_ECHEC"; const SESSION_IMMINENTE = "FORMATION_SESSION_IMMINENTE"; Loading module/Formation/src/Formation/Service/Notification/NotificationService.php +31 −1 Original line number Diff line number Diff line Loading @@ -110,6 +110,36 @@ class NotificationService extends NotifierService } } /** * @param Session $session * @return void * @throws NotificationException */ public function triggerInscriptionClose(Session $session) : void { $nonClasses = $session->getNonClasses(); foreach ($nonClasses as $inscription) { $vars = [ 'doctorant' => $inscription->getDoctorant(), 'formation' => $inscription->getSession()->getFormation(), 'session' => $inscription->getSession(), ]; $rendu = $this->getRenduService()->generateRenduByTemplateCode(MailTemplates::INSCRIPTION_CLOSE, $vars); $mail = $inscription->getDoctorant()->getIndividu()->getEmail(); if ($mail !== null) { $notif = new Notification(); $notif ->setTo($mail) ->setSubject($rendu->getSujet()) ->setBody($rendu->getCorps()) ; $this->trigger($notif); } } } /** * @param Session $session * @return void Loading @@ -117,7 +147,7 @@ class NotificationService extends NotifierService */ public function triggerInscriptionEchec(Session $session) : void { $complementaire = []; //$session->getListeComplementaire(); $complementaire = $session->getListeComplementaire(); $nonClasses = $session->getNonClasses(); $inscriptions = array_merge($complementaire, $nonClasses); Loading Loading
CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ Journal des modifications - Abandon (avant suppression) de la table obsolète doctorant_compl. - Ajout d'un bloc dans l'ecran de proposition de soutenance pour le téléchargement des pré-rapport et du serment - Nouveau document "Serment du docteur" - Ajout d'un nouvel mail intermediare à la clôture des inscriptions + deplacement du mail d'echec d'inscription - [FIX] Retrait de la liste complémentaire du mail d'echec - [FIX] Ordonnancement des séances sur les index des formations et des sessions - [FIX] Correction paramètre de route erronée + suppression bouton inactif Loading
module/Formation/src/Formation/Controller/SessionController.php +2 −1 Original line number Diff line number Diff line Loading @@ -226,10 +226,11 @@ class SessionController extends AbstractController case Etat::CODE_FERME : $this->getNotificationService()->triggerInscriptionsListePrincipale($session); $this->getNotificationService()->triggerInscriptionsListeComplementaire($session); $this->getNotificationService()->triggerInscriptionEchec($session); $this->getNotificationService()->triggerInscriptionClose($session); break; case Etat::CODE_IMMINENT : $this->getNotificationService()->triggerSessionImminente($session); $this->getNotificationService()->triggerInscriptionEchec($session); break; case Etat::CODE_CLOTURER : $this->getNotificationService()->triggerSessionTerminee($session); Loading
module/Formation/src/Formation/Provider/Template/MailTemplates.php +1 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ class MailTemplates { const INSCRIPTION_ENREGISTREE = "FORMATION_INSCRIPTION_ENREGISTREE"; const INSCRIPTION_LISTE_PRINCIPALE = "FORMATION_INSCRIPTION_LISTE_PRINCIPALE"; const INSCRIPTION_LISTE_COMPLEMENTAIRE = "FORMATION_INSCRIPTION_LISTE_COMPLEMENTAIRE"; const INSCRIPTION_CLOSE = "FORMATION_INSCRIPTION_CLOSE"; const INSCRIPTION_ECHEC = "FORMATION_INSCRIPTION_ECHEC"; const SESSION_IMMINENTE = "FORMATION_SESSION_IMMINENTE"; Loading
module/Formation/src/Formation/Service/Notification/NotificationService.php +31 −1 Original line number Diff line number Diff line Loading @@ -110,6 +110,36 @@ class NotificationService extends NotifierService } } /** * @param Session $session * @return void * @throws NotificationException */ public function triggerInscriptionClose(Session $session) : void { $nonClasses = $session->getNonClasses(); foreach ($nonClasses as $inscription) { $vars = [ 'doctorant' => $inscription->getDoctorant(), 'formation' => $inscription->getSession()->getFormation(), 'session' => $inscription->getSession(), ]; $rendu = $this->getRenduService()->generateRenduByTemplateCode(MailTemplates::INSCRIPTION_CLOSE, $vars); $mail = $inscription->getDoctorant()->getIndividu()->getEmail(); if ($mail !== null) { $notif = new Notification(); $notif ->setTo($mail) ->setSubject($rendu->getSujet()) ->setBody($rendu->getCorps()) ; $this->trigger($notif); } } } /** * @param Session $session * @return void Loading @@ -117,7 +147,7 @@ class NotificationService extends NotifierService */ public function triggerInscriptionEchec(Session $session) : void { $complementaire = []; //$session->getListeComplementaire(); $complementaire = $session->getListeComplementaire(); $nonClasses = $session->getNonClasses(); $inscriptions = array_merge($complementaire, $nonClasses); Loading