Skip to content
Snippets Groups Projects
Commit e6b98e52 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Usage of new template to field

parent 6511c10f
No related branches found
No related tags found
1 merge request!3New version 4 1
......@@ -293,6 +293,7 @@ class BackendService {
$template->setCc($templateData['cc']);
$template->setBcc($templateData['bcc']);
$template->setReplyTo($templateData['replyTo']);
$template->setToAddress($templateData['toAddress']);
if ($templateAlreadyExists) {
$templateRepository->update($template);
......
......@@ -346,6 +346,8 @@ class MailTemplateService {
return FALSE;
}
}
} elseif (filter_var($template->getToAddress(), FILTER_VALIDATE_EMAIL)) {
$this->setToAddresses($template->getToAddress());
}
if ($isPreview) {
......
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