Skip to content
Snippets Groups Projects
Commit 47aa0fe3 authored by Paul Ilea's avatar Paul Ilea
Browse files

[BUGFIX] Trim default register template subject values

parent 76b4ac84
No related branches found
No related tags found
1 merge request!7Featture forms integration
......@@ -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]
);
}
}
......
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