Commit 47aa0fe3 authored by Paul Ilea's avatar Paul Ilea
Browse files

[BUGFIX] Trim default register template subject values

parent 76b4ac84
......@@ -328,14 +328,15 @@ class MailTemplateService {
if (NULL === $defaultTemplateContent) {
$emailView->setTemplateSource($template->getContent());
$subject = $template->getSubject();
$subject = trim($template->getSubject());
} else {
$emailView->setTemplateSource($defaultTemplateContent);
$subject = self::getRegisterArray()[$this->extensionKey][$this->templateName]['subject'];
if (is_array($subject)) {
$subject = self::getRegisterArray(
)[$this->extensionKey][$this->templateName]['subject'][$this->language];
$subject = trim(
self::getRegisterArray()[$this->extensionKey][$this->templateName]['subject'][$this->language]
);
}
}
......
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