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

[FIX] Vérification du dépôt de l'avis de soutenance avant notification pour rappel

parent 8ec87d6b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ Journal des modifications
------
- Le bouton d'impression du document pour signature du président reste visible même après validation de l'ED.
- Corrections de typos
- [FIX] Vérification du dépôt de l'avis de soutenance avant notification pour rappel

3.0.11
-----
+3 −0
Original line number Diff line number Diff line
@@ -298,11 +298,14 @@ class PresoutenanceController extends AbstractController
        }

        foreach ($rapporteurs as $rapporteur) {
            $hasRapport = ($this->getAvisService()->getAvisByMembre($rapporteur) !== null);
            if ($hasRapport === false) {
                $token = $this->getMembreService()->retrieveOrCreateToken($rapporteur);
                $url_rapporteur = $this->url()->fromRoute("soutenance/index-rapporteur", ['these' => $these->getId()], ['force_canonical' => true], true);
                $url = $this->url()->fromRoute('zfcuser/login', ['type' => 'token'], ['query' => ['token' => $token->getToken(), 'redirect' => $url_rapporteur, 'role' => $rapporteur->getActeur()->getRole()->getRoleId()], 'force_canonical' => true], true);
                $this->getNotifierSoutenanceService()->triggerDemandeAvisSoutenance($these, $proposition, $rapporteur, $url);
            }
        }

        $this->getEvenementService()->ajouterEvenement($proposition, Evenement::EVENEMENT_PRERAPPORT);
        return $this->redirect()->toRoute('soutenance/presoutenance', ['these' => $these->getId()], [], true);