Commit c055cc49 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Notification 'Corrections attendues' et 'Résultats de thèses modifiés' :...

[FIX] Notification 'Corrections attendues' et 'Résultats de thèses modifiés' : correction de l'erreur 'Typed property Notification\Notification:: must not be accessed before initialization'.
parent 423f7c0f
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ Journal des modifications
13.2.0
------
- [FIX] Notification de thèse déposée : warning 'Undefined variable' à cause d'une variable non fournie au template.
- [FIX] Notification 'Corrections attendues' et 'Résultats de thèses modifiés' : correction de l'erreur 'Typed property Notification\Notification::$subject must not be accessed before initialization'.

13.1.0
------
+4 −3
Changes for module/Depot/src/Depot/Notification/ChangementCorrectionAttendueNotification.php: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -23,6 +23,10 @@ class ChangementCorrectionAttendueNotification extends Notification

    public function prepare(): static
    {
        $this->setSubject(
            "Dépôt de thèse, corrections " . lcfirst($this->these->getCorrectionAutoriseeToString(true)) . " attendues"
        );

        parent::prepare();

        $directeursTheseEnCopie = false;
@@ -42,9 +46,6 @@ class ChangementCorrectionAttendueNotification extends Notification
            $cc = array_merge($this->these->getDirecteursTheseEmails(), $this->these->getCoDirecteursTheseEmails());
        }

        $subject = "Dépôt de thèse, corrections " . lcfirst($this->these->getCorrectionAutoriseeToString(true)) . " attendues";

        $this->setSubject($subject);
        $this->setTo($to);
        $this->setCc($cc);

+2 −2
Changes for module/These/src/These/Notification/ChangementsResultatsThesesNotification.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -15,10 +15,10 @@ class ChangementsResultatsThesesNotification extends Notification
    {
        // NB: les destinataires sont ajoutés en amont.

        parent::prepare();

        $this->setSubject("Résultats de thèses modifiés");

        parent::prepare();

        $this->setTemplateVariables([
            'these' => $this->these,
            'data' => $this->data,