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

Correction bug envoi vers destinatire multiple ne fonctionnant pas en 7.4

parent 5b2b9aaa
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ class MailService {
        if ($this->doNotSend) {
            $sujet .= ' {REDIR}';
        }
        $message->setTo( (!is_array($mail->getDestinataires())) ? [ $mail->getDestinataires()] : $mail->getDestinataires());
        $message->setTo( $to );
        $message->setSubject($sujet);
        $texte = "<p><i>Ce courrier électronique vous a été adressé <strong>automatiquement</strong> par l'application ".$this->subjectPrefix.". </i></p>" . $texte;
        $mail->setCorps($texte);
+11 −3
Original line number Diff line number Diff line
@@ -46,12 +46,20 @@ if (!isset($options['droits']) OR !isset($options['droits']['supprimer'])) {
    <tbody>
    <?php foreach ($mails as $mail) : ?>
        <tr>
            <td> <?php echo $mail->getDestinataires(); ?>
            <td>
                <?php $destinataires = explode(",",$mail->getDestinataires()); ?>
                <ul>
                    <?php foreach ($destinataires as $destinataire) : ?>
                        <li><span class="send"> <?php echo $destinataire; ?></span></li>
                    <?php endforeach; ?>
                </ul>
                <?php if ($mail->isRedirection()) : ?>
                    <?php $destinataires = explode(",",$mail->getDestinatairesInitials()); ?>
                    <ul>
                    <?php foreach ($destinataires as $destinataire) : ?>
                        <span class="badge redir">Intialement : <?php echo $destinataire; ?></span>
                        <li><span class="badge redir">Initialement : <?php echo $destinataire; ?></span></li>
                    <?php endforeach; ?>
                    </ul>
                <?php endif; ?>
            </td>
            <td> <?php echo $mail->getDateEnvoi()->format('d/m/Y <br/> H:i'); ?> </td>
@@ -115,7 +123,7 @@ if (!isset($options['droits']) OR !isset($options['droits']['supprimer'])) {
    span.badge.template {
        background: teal;
    }
    span.badge.redir {
    span.redir {
        background: salmon;
    }
</style>