Commit 51931713 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix broken templates when fetched from registry

parent c3e33b1d
......@@ -141,6 +141,8 @@ class MailController extends AbstractController {
$language
);
$template = GeneralUtility::makeInstance(Template::class);
$template->setSiteLanguage($language);
$template->setPid($this->getPid());
$this->templateRepository->fillTemplate(
$template,
$templateFromFile
......
......@@ -166,6 +166,8 @@ class NewsletterController extends AbstractController {
$selectedLanguage
);
$template = GeneralUtility::makeInstance(Template::class);
$template->setSiteLanguage($selectedLanguage);
$template->setPid($this->getPid());
$this->templateRepository->fillTemplate($template, $templateFromFile);
} else {
$template->setIsOverwritten(TRUE);
......
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