[BUGFIX] Add rootline workspace overlay for backend_layouts.
authorTimo Webler <timo.webler@dkd.de>
Thu, 19 Apr 2012 06:56:21 +0000 (08:56 +0200)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 12 Jul 2012 07:10:07 +0000 (09:10 +0200)
When fetching the rootline inside a workspace
make sure to fetch the correct overlay.

Change-Id: I15ef4202d34c62f7aab598f7173530976233eb45
Fixes: #36313
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/10629
Reviewed-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/sysext/cms/layout/class.tx_cms_layout.php

index b4fd278..16af3de 100755 (executable)
@@ -408,7 +408,7 @@ class tx_cms_layout extends recordList {
                        $backendLayoutUid = NULL;
                } else if ($backendLayoutUid == 0) {
                                // if it not set check the rootline for a layout on next level and use this
-                       $rootline = t3lib_BEfunc::BEgetRootLine($id);
+                       $rootline = t3lib_BEfunc::BEgetRootLine($id, '', TRUE);
                        for ($i = count($rootline) - 2; $i > 0; $i--) {
                                $backendLayoutUid = intval($rootline[$i]['backend_layout_next_level']);
                                if ($backendLayoutUid > 0) {