Skip to content
Snippets Groups Projects
Commit 7dc470ab authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[BUGFIX] fix mailqueue pid for sg_jobs mails

parent a0126b76
No related branches found
No related tags found
1 merge request!43Bugfix 4458 mail pid
......@@ -491,7 +491,10 @@ class JoblistController extends ActionController {
'sg_jobs',
$this->getApplicationMailMarkers($applyData)
);
$mailService->setPid($GLOBALS['TSFE']->id);
// set the pageId of the rootpage, otherwise the templates could be duplicated
$site = GeneralUtility::makeInstance(SiteFinder::class)->getSiteByPageId($GLOBALS['TSFE']->id);
$mailService->setPid($site->getRootPageId());
// get email from the job contact, fallback is TS settings
$contact = NULL;
......
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