Issue Bug Closed

#47993Possible 6.1 TCA load regression if calling includeTCA() in eid context

Christian Kuhn 05/06/13, 17:53 updated 10/02/18, 12:14

Description

Index: typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
===================================================================
--- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php    (revision 709)
+++ typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php    (working copy)
@@ -2459,6 +2459,9 @@
     public function includeTCA($TCAloaded = 1) {
         // Full TCA is always loaded during bootstrap in FE, this method is obsolete.
         \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
+        if (!is_array($GLOBALS['TCA']) || !isset($GLOBALS['TCA']['pages'])) {
+            \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadCachedTca();
+        }
     }

     /**

Reviews 2