Commit 44b1b767 authored by Cédric Girardot's avatar Cédric Girardot

Fix : Alerte décès - comparaison de dates

Change-Id: I45a539380e43c55a9ef5efddc41500d4b1bb3898
parent 1a114bdf
......@@ -641,7 +641,7 @@ class SearchController extends BaseController
private function sendDeathAlert(?Person $person, SearchData $searchData, MailService $mailService = null)
{
if ($person && $this->settingsData->hasDeathAlert() && $this->settingsData->getDeathAlertMail() &&
$searchData->getDeathDate() !== $person->getDeathDate()) {
$searchData->getDeathDate() != $person->getDeathDate()) {
if ($mailService) {
$this->sendDeathAlertMail($person, $searchData, $mailService);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment