Skip to content
Snippets Groups Projects
Commit adf58516 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] fixing missing initilization of site root id

parent 617fdf7a
No related branches found
No related tags found
1 merge request!2Feature multiclient
......@@ -315,6 +315,9 @@ class MailController extends ActionController {
$selectedExtension, $selectedTemplate, $selectedLanguage, $selectedContent, $selectedSubject,
$selectedFromName, $selectedFromMail, $selectedCc, $selectedBcc, $selectedReplyTo
) {
$pageUid = (int) GeneralUtility::_GP('id');
$siteRootId = BackendService::getSiteRoot($pageUid)['uid'];
/** @var Template $template */
$template = $this->templateRepository->findOneByTemplate(
$selectedExtension, $selectedTemplate, $selectedLanguage, $siteRootId
......
......@@ -435,6 +435,9 @@ class MailTemplateService {
$mail->setSendingTime($sendingTime);
$mail->setReplyTo($this->replyToAddress);
$mail->setSiteRootId($this->replyToAddress);
$mailRepository = $this->objectManager->get(MailRepository::class);
$mailRepository->add($mail);
$this->persistenceManager->persistAll();
......
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