Commit 4cf64837 authored by Mickaël WLODARCZYK's avatar Mickaël WLODARCZYK Committed by Mickaël Wlodarczyk

Fix #64 : Changement du titre du mail envoyé

Change-Id: Ieadd06d9ec6e1a9477e9b0652ad85da47da1b6e3
parent b06b21f7
Pipeline #10396 passed with stages
in 4 minutes and 42 seconds
......@@ -351,15 +351,27 @@ class SearchController extends BaseController
/** @var User $user */
$user = $this->getUser();
$mailSubject = $this->translator->trans(
'searchResultMail.subject.default',
[
'%appName%' => $this->settingsData->getAppName(),
'%recipient%' => $searchData->getRecipient(),
'%firstName%' => $searchData->getFirstName(),
'%name%' => $searchData->getName($this->settingsData),
]
);
if ($searchData->getRecipient()) {
$mailSubject = $this->translator->trans(
'searchResultMail.subject.default',
[
'%appName%' => $this->settingsData->getAppName(),
'%recipient%' => $searchData->getRecipient(),
'%firstName%' => $searchData->getFirstName(),
'%name%' => $searchData->getName($this->settingsData),
]
);
} else {
$mailSubject = $this->translator->trans(
'searchResultMail.subject.norecipient',
[
'%appName%' => $this->settingsData->getAppName(),
'%firstName%' => $searchData->getFirstName(),
'%name%' => $searchData->getName($this->settingsData),
]
);
}
$mailTemplate = '';
$mailParameters = [
'firstName' => $searchData->getFirstName(),
......
......@@ -208,8 +208,9 @@ dateJsValidation:
deathDateAfterdeathCertificateDate: "La date de décès ne peut être postérieure à la date de l'acte."
searchResultMail:
subject:
default: "[%appName%] Notaire référent : %recipient% - Succession %firstName% %name%"
hasRequest: "[%appName%] Instruction"
default: "[%appName%] Notaire référent : %recipient% - Succession %firstName% %name%"
norecipient: "[%appName%] Succession %firstName% %name%"
hasRequest: "[%appName%] Instruction"
formError:
date: "Mauvais format de date"
userLogs:
......
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