Loading src/UnicaenMail/Controller/MailController.php +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ class MailController extends AbstractActionController { public function indexAction() : ViewModel { $filtre = $this->params()->fromQuery(); if (!isset($filtre['date']) OR $filtre['date'] === '') $filtre['date'] = '1M'; if (!isset($filtre['date']) OR $filtre['date'] === '') $filtre['date'] = '1W'; $mails = $this->getMailService()->getMailsWithFiltre($filtre); Loading src/UnicaenMail/Service/Mail/MailService.php +4 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,10 @@ class MailService { } if ($to === "" OR $to === []) { return null; } if (is_string($to)) $to=explode(',', $to); if (!is_array($to)) $to = [$to]; Loading view/unicaen-mail/mail/partial/filtre-mail.phtml +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ $statuts = [ 'PENDING', 'SUCCESS', 'FAILED']; <div class="col-md-4"> <label for="date">Historique :</label> <select id="date" name="date" class="selectpicker"> <option value="1W"> 1 semaine </option> <option value="2W"> 2 semaines </option> <option value="1M"> 1 mois </option> <option value="3M"> 3 mois </option> <option value="6M"> 6 mois </option> Loading Loading
src/UnicaenMail/Controller/MailController.php +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ class MailController extends AbstractActionController { public function indexAction() : ViewModel { $filtre = $this->params()->fromQuery(); if (!isset($filtre['date']) OR $filtre['date'] === '') $filtre['date'] = '1M'; if (!isset($filtre['date']) OR $filtre['date'] === '') $filtre['date'] = '1W'; $mails = $this->getMailService()->getMailsWithFiltre($filtre); Loading
src/UnicaenMail/Service/Mail/MailService.php +4 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,10 @@ class MailService { } if ($to === "" OR $to === []) { return null; } if (is_string($to)) $to=explode(',', $to); if (!is_array($to)) $to = [$to]; Loading
view/unicaen-mail/mail/partial/filtre-mail.phtml +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ $statuts = [ 'PENDING', 'SUCCESS', 'FAILED']; <div class="col-md-4"> <label for="date">Historique :</label> <select id="date" name="date" class="selectpicker"> <option value="1W"> 1 semaine </option> <option value="2W"> 2 semaines </option> <option value="1M"> 1 mois </option> <option value="3M"> 3 mois </option> <option value="6M"> 6 mois </option> Loading