[BUGFIX] Fix recursive FLUIDTEMPLATE cObj's that use layoutRootPaths
FLUIDTEMPLATE variables may contain content elements (e.g. recursive FLUIDTEMPLATE's) which may instantiate own TemplateViews (e.g. StandaloneView). A recursive StandaloneView will statically(!!) cache used TemplatesPaths in \TYPO3Fluid\Fluid\View\Templates::resolvedFiles. If StandaloneView is instantiated before, but the fluid layout path is calculated after inner content objects are being rendering, the altered statically cached `resolvedFiles` cache is used and contains invalid layoutRootPaths. Short term solution: Defer the initialization of the StandaloneView (which flushes those buggy caches) until all variables have been processed. Change-Id: Idf053b3d0f0835a352790e0ed971344d67844bbc Releases: master, 8.7 Resolves: #79760 Resolves: #82745 Reviewed-on: https://review.typo3.org/54416 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Sebastian Hofer <sebastian.hofer@marit.ag> Tested-by:
Sebastian Hofer <sebastian.hofer@marit.a...>
Showing
- typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php 5 additions, 5 deletions...tend/Classes/ContentObject/FluidTemplateContentObject.php
- typo3/sysext/frontend/Tests/Functional/ContentObject/FluidTemplateContentObjectTest.php 61 additions, 1 deletion...nctional/ContentObject/FluidTemplateContentObjectTest.php