[BUGFIX] Hide move placeholder in WS preview 66/12666/4
authorBenjamin Mack <benni@typo3.org>
Sat, 6 Apr 2013 21:12:00 +0000 (23:12 +0200)
committerBenjamin Mack <benni@typo3.org>
Sat, 6 Apr 2013 21:12:47 +0000 (23:12 +0200)
Move placeholder are visible in the navigation
during WS preview if they are moved for example
from the first to the second level.

Change-Id: I7e3339488d9d64cdf04154fb0334880f76576f8d
Fixes: #38705
Releases: 6.0,4.7,4.6,4.5
Reviewed-on: https://review.typo3.org/12666
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php

index 8de381b..dbe4b1f 100644 (file)
@@ -446,7 +446,7 @@ class AbstractMenuContentObject {
                                                // Get sub-pages:
                                                $res = $this->parent_cObj->exec_getQuery('pages', array('pidInList' => $id, 'orderBy' => $altSortField));
                                                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
-                                                       $GLOBALS['TSFE']->sys_page->versionOL('pages', $row);
+                                                       $GLOBALS['TSFE']->sys_page->versionOL('pages', $row, TRUE);
                                                        if (is_array($row)) {
                                                                // Keep mount point?
                                                                $mount_info = $this->sys_page->getMountPointInfo($row['uid'], $row);
@@ -586,7 +586,7 @@ class AbstractMenuContentObject {
                                                'max' => $limit
                                        ));
                                        while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
-                                               $GLOBALS['TSFE']->sys_page->versionOL('pages', $row);
+                                               $GLOBALS['TSFE']->sys_page->versionOL('pages', $row, TRUE);
                                                if (is_array($row)) {
                                                        $temp[$row['uid']] = $this->sys_page->getPageOverlay($row);
                                                }
@@ -660,7 +660,7 @@ class AbstractMenuContentObject {
                                                }
                                                $res = $this->parent_cObj->exec_getQuery('pages', array('pidInList' => '0', 'uidInList' => $id_list, 'where' => '(' . implode(' OR ', $keyWordsWhereArr) . ')' . $extraWhere, 'orderBy' => $altSortFieldValue ? $altSortFieldValue : $sortField . ' desc', 'max' => $limit));
                                                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
-                                                       $GLOBALS['TSFE']->sys_page->versionOL('pages', $row);
+                                                       $GLOBALS['TSFE']->sys_page->versionOL('pages', $row, TRUE);
                                                        if (is_array($row)) {
                                                                $temp[$row['uid']] = $this->sys_page->getPageOverlay($row);
                                                        }