[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)
committerTolleiv Nietsch <tolleiv.nietsch@typo3.org>
Sat, 21 Apr 2012 09:39:54 +0000 (11:39 +0200)
When fetching the rootline inside a workspace
make sure to fetch the correct overlay.

Change-Id: I110cea0f2f989154dbf3b449616bc39cb5323049
Fixes: #36313
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/10628
Reviewed-by: Georg Ringer
Reviewed-by: Philipp Gampe
Reviewed-by: Oliver Hader
Tested-by: Georg Ringer
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
typo3/sysext/cms/layout/class.tx_cms_layout.php

index dafee66..ba3c64b 100755 (executable)
@@ -315,7 +315,7 @@ class tx_cms_layout extends recordList {
                        $backendLayoutUid = NULL;
                } elseif ($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) {