Commit 6a28dc1a authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[BUGFIX] TypoScript configuration not available in backend

On bootstrapping and dispatching Extbase modules in the
backend, the frontend TypoScript is being parsed. However, if
the accordant page does not have any root template assigned, the
basic Extbase settings cannot be loaded and parsed. In a result,
e.g. persistence mappings for backend users are not available in
this situation.

The solution is to explicitly trigger the processing of the
extension static files (e.g. ext_typoscript_setup.txt) even if
there's no valid root template.

Change-Id: Ibdeba3f4a0c6303989d5393fee51c20bb6741ca0
Fixes: #46511
Related: #46250
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/19147
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
parent 6490c5d5
......@@ -62,9 +62,12 @@ class BackendConfigurationManager extends \TYPO3\CMS\Extbase\Configuration\Abstr
$pageId = $this->getCurrentPageId();
if (!array_key_exists($pageId, $this->typoScriptSetupCache)) {
/** @var $template \TYPO3\CMS\Core\TypoScript\TemplateService */
$template = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\TemplateService');
// do not log time-performance information
$template->tt_track = 0;
// Explicitly trigger processing of extension static files
$template->setProcessExtensionStatics(TRUE);
$template->init();
// Get the root line
$rootline = array();
......
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