feat: include jobprofile placeholder in email texts

addresses #869armp40
This commit is contained in:
2026-08-31 15:30:22 +02:00
parent 702f04d946
commit b2488e2ff4
2 changed files with 6 additions and 4 deletions
@@ -240,6 +240,7 @@ class EmailNotificationSubscriber implements EventSubscriberInterface
$this->mailer->createAndSendText(EmailTextKey::DISPOSITION_CALLED_OFF, [
'destination' => (string) $disposition->getAssignment()->getDestination(),
'jobProfile' => $disposition->getAssignment()->getJobProfile()?->getName(),
'reason' => $disposition->getCalledOffReason(),
], [
'to' => $teamer->getCommunication()->getEmail(),
@@ -261,6 +262,7 @@ class EmailNotificationSubscriber implements EventSubscriberInterface
$this->mailer->createAndSendText(EmailTextKey::ASSIGNMENT_CALLED_OFF, [
'destination' => (string) $assignment->getDestination(),
'jobProfile' => $assignment->getJobProfile()?->getName(),
], [
'to' => $teamer->getCommunication()->getEmail(),
]);