Skip to content
Snippets Groups Projects
Commit a2fd3ac7 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Correction affichage des redirections

parent 100e804a
No related branches found
No related tags found
No related merge requests found
Pipeline #15673 passed
......@@ -209,7 +209,7 @@ class MailService {
$texte .= "<br/><br/><hr/><br/>";
$texte .= "Initialement envoyé à :";
$texte .= "<ul>";
foreach ($to as $t) $texte .= "<li>" . $t . "</li>";
foreach (explode("," ,$mail->getDestinatairesInitials()) as $t) $texte .= "<li>" . $t . "</li>";
$texte .= "</ul>";
}
......
......@@ -40,7 +40,10 @@ use UnicaenMail\Entity\Db\Mail;
<dd>
<?php echo $mail->getDestinataires(); ?>
<?php if ($mail->isRedirection()) : ?>
<span class="badge redir">Intialement : <?php echo $mail->getDestinatairesInitials(); ?></span>
<?php $mails_re = explode(",", $mail->getDestinatairesInitials()); ?>
<?php foreach ($mails_re as $mail_re) : ?>
<span class="badge redir">Initialement : <?php echo $mail_re; ?></span>
<?php endforeach; ?>
<?php endif; ?>
</dd>
<dt> Mots clefs </dt>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment