Commit 423f7c0f authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Notification de thèse déposée : warning 'Undefined variable' à cause...

[FIX] Notification de thèse déposée : warning 'Undefined variable' à cause d'une variable non fournie au template.
parent 562a7f8f
Loading
Loading
Loading
Loading
+4 −0
Changes for CHANGELOG.md: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
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.

13.1.0
------
- Association d'individu à un membre de jury : si un acteur existe déjà avec le même individu et le même rôle pas besoin d'en créer un nouveau.
+2 −1
Changes for module/Depot/src/Depot/Service/Notification/DepotNotificationFactory.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -132,14 +132,15 @@ class DepotNotificationFactory extends \Notification\Factory\NotificationFactory
    {
        $to = $this->emailService->fetchEmailAspectsDoctorat($these);

        // NB : prototype de notification déclarée en bdd (NotifEntity), pas généralisée
        $notif = $this->createNotification('notif-depot-these');
        $notif
            ->setTo($to)
            ->setSubject("Dépôt d'une thèse")
//            ->setTemplatePath('depot/depot/mail/notif-depot-these') // le template est dans la NotifEntity
            ->setTemplateVariables([
                'these' => $these,
                'version' => $version,
                'url' => $this->urlService->fromRoute('these/depot', ['these' => $these->getId()], ['force_canonical' => true]),
            ]);

        return $notif;
+0 −27
Changes for module/Depot/view/depot/depot/mail/notif-depot-these.phtml: 0 added lines, 27 removed lines.
Original line number Diff line number Diff line
<?php

use These\Entity\Db\These;
use Fichier\Entity\Db\VersionFichier;
use Application\Filter\IdifyFilter;
use Application\View\Renderer\PhpRenderer;

/**
 * @var PhpRenderer $this
 * @var These $these
 * @var VersionFichier $version
 */
?>

<p>
    Bonjour,
</p>
<p>
    Ceci est un mail envoyé automatiquement par l'application <?php echo $this->appInfos()->nom ?>.
</p>
<p>
    Vous êtes informé-e que <em><?php echo $version->toString() ?></em> de la thèse de <?php echo $these->getDoctorant() ?> vient d'être déposée.
</p>
<p>
    Cliquez sur <a href="<?php echo $this->url('these/depot', ['these' => IdifyFilter::id($these)],
        ['force_canonical' => true]) ?>">ce lien</a> pour accéder à la page correspondante de l'application.
</p>