Commit 38399b02 authored by Paul Ilea's avatar Paul Ilea
Browse files

[BUGFIX] Fix mail content fallback

parent f519f807
......@@ -360,7 +360,7 @@ class MailTemplateService {
$emailView->assignMultiple($this->markers);
$emailView->assign('all_fields', $this->getAllMarker($this->markers));
if (NULL === $defaultTemplateContent) {
if ($template !== NULL) {
$emailView->setTemplateSource(\trim($template->getSubject()));
$subject = $emailView->render();
......
Supports Markdown
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