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