[BUGFIX] TypoScript configuration not available in backend
authorOliver Hader <oliver@typo3.org>
Thu, 21 Mar 2013 18:14:46 +0000 (19:14 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 26 Mar 2013 09:48:24 +0000 (10:48 +0100)
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

index e6d0c13..d1b2622 100644 (file)
@@ -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);
                        // Get the root line
                        $rootline = array();