Commit 2d758340 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix setting of the page id in FormsFinisher

parent 603c1528
......@@ -136,6 +136,7 @@ class FormsFinisher extends AbstractFinisher {
$site = GeneralUtility::makeInstance(SiteFinder::class)->getSiteByPageId((int) $GLOBALS['TSFE']->id);
$siteLanguage = $site->getLanguageById($languageId);
$mailTemplateService->setSiteLanguage($siteLanguage);
$mailTemplateService->setPid($site->getRootPageId());
$mailToAddresses = trim((string) $this->parseOption('mailTo'));
if ($mailToAddresses !== '') {
......
Markdown is supported
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