Skip to content
Snippets Groups Projects
Commit 18a2e42a authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[BUGFIX] fix applicant_mail being sent to the wrong address

parent 4becf5bd
No related branches found
No related tags found
No related merge requests found
......@@ -624,16 +624,10 @@ class JoblistController extends ActionController {
if ($contact !== NULL) {
$mailService->setToAddresses($contact->getEmail());
if ($enableApplicantMail) {
$applicantMailService->setToAddresses($contact->getEmail());
}
} else {
$company = $applyData->getCompany();
if (($company !== NULL) && $company->getContact() !== NULL) {
$mailService->setToAddresses($company->getContact()->getEmail());
if ($enableApplicantMail) {
$applicantMailService->setToAddresses($company->getContact()->getEmail());
}
}
}
......@@ -645,12 +639,13 @@ class JoblistController extends ActionController {
$mailService->setIgnoreMailQueue(TRUE);
if ($enableApplicantMail) {
$applicantMailService->setToAddresses($applyData->getEmail());
$applicantMailService->setIgnoreMailQueue(TRUE);
$applicantMailService->setMarkers(
[
'application' => $applyData,
]
);
$applicantMailService->setIgnoreMailQueue(TRUE);
}
// add attachments for each file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment