Commit 8ead183c authored by Johnny Leveneur's avatar Johnny Leveneur
Browse files

desactivation notification validation et activation mail LP

parent 5456b427
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Atelier/src/Controller/InscriptionController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ class InscriptionController extends AbstractActionController
                    $this->getEtatInstanceService()->setEtatActif($inscription, InscriptionEtats::INSCRIPTION_VALIDER);
                    $this->getInscriptionService()->update($inscription);
                    $this->flashMessenger()->addSuccessMessage("Validation effectuée.");
                    $this->getNotificationService()->triggerValidation($inscription);
                    //$this->getNotificationService()->triggerValidation($inscription);
                }
            }
        }
+3 −0
Changes for module/Atelier/src/Service/Session/SessionService.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -344,6 +344,9 @@ class SessionService
        if ($session->getNbPlacePrincipale() > $placePrincipale) {
            $inscription->setListe(Inscription::PRINCIPALE);
            $this->getObjectManager()->flush($inscription);

            $this->getNotificationService()->triggerListePrincipale($inscription);

            return $inscription;
        }
        $placeComplementaire = $session->getPlaceDisponible(Inscription::COMPLEMENTAIRE);