Commit bb09e3e9 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Changement du lien dans le mail pour la validation des présidents : redirect + selection du rôle

parent 9e2dcf2b
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ Journal des modifications
- [FIX] Passage à unicaen/db-import 5.2.2 pour corrections de dysfonctionnements dans l'import/synchro.
- [FIX] Plantage de la recherche textuelle d'individus en cas de résultat vide. 
- [FIX] Ajout de garde pour l'index des rapporteurs (cas où le membre est null qui bloquait les administrateurs)
- Changement du lien dans le mail pour la validation des présidents : redirect + selection du rôle

5.2.0
-----
+5 −4
Changes for module/Application/src/Application/Service/Notification/NotifierService.php: 5 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -199,6 +199,10 @@ class NotifierService extends \Notification\Service\NotifierService
     */
    public function triggerValidationDepotTheseCorrigee(These $these)
    {
        $targetedUrl = $this->urlHelper->__invoke( 'these/validation-these-corrigee', ['these' => $these->getId()], ['force_canonical' => true]);
        $president = $this->getRoleService()->getRepository()->findByCodeAndEtablissement(Role::CODE_PRESIDENT_JURY, $these->getEtablissement());
        $url = $this->urlHelper->__invoke('zfcuser/login', ['type' => 'local'], ['query' => ['redirect' => $targetedUrl, 'role' => $president->getRoleId()], 'force_canonical' => true], true);

        // envoi de mail aux directeurs de thèse
        $notif = new ValidationDepotTheseCorrigeeNotification();
        $notif
@@ -206,10 +210,7 @@ class NotifierService extends \Notification\Service\NotifierService
            ->setEmailBdd($this->fetchEmailBdd($these))
            ->setTemplateVariables([
                'these' => $these,
                'url'   => $this->urlHelper->__invoke(
                    'these/validation-these-corrigee',
                    ['these' => $these->getId()],
                    ['force_canonical' => true]),
                'url'   => $url,
            ]);

        $this->trigger($notif);