[BUGFIX] Show correct tooltip for page type "Mount Point" 98/33198/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 7 Oct 2014 04:31:43 +0000 (06:31 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 8 Oct 2014 08:33:11 +0000 (10:33 +0200)
The tooltip of pages of the type "Mount Point" lacks the information
about the linked page because the needed fields are not retrieved.

Additionally the shortcut tooltip gets improved for the page tree.

Change-Id: I9c7c65094d23bbc0b0eb6100b0d6a62641c00d22
Resolves: #61951
Related: #60033
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/33198
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Tree/View/PageTreeView.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 6a86902..a573b77 100644 (file)
@@ -28,6 +28,7 @@ class PageTreeView extends \TYPO3\CMS\Backend\Tree\View\AbstractTreeView {
                'uid',
                'title',
                'doktype',
+               'mount_pid',
                'php_tree_stop',
                't3ver_id',
                't3ver_state'
index 655f04b..28a812d 100644 (file)
@@ -1695,7 +1695,7 @@ class BackendUtility {
                                $label = self::getRecordPath((int)$row['mount_pid'], $perms_clause, 20);
                        } else {
                                $lRec = self::getRecordWSOL('pages', (int)$row['mount_pid'], 'title');
-                               $label = $lRec['title'];
+                               $label = $lRec['title'] . ' (id=' . $row['mount_pid'] . ')';
                        }
                        $parts[] = $GLOBALS['LANG']->sL($GLOBALS['TCA']['pages']['columns']['mount_pid']['label']) . ' ' . $label;
                        if ($row['mount_pid_ol']) {
index 1c574f5..33f366a 100644 (file)
@@ -304,6 +304,8 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\AbstractDataba
                        $selectFields[] = 'nav_hide';
                        $selectFields[] = 'doktype';
                        $selectFields[] = 'shortcut';
+                       $selectFields[] = 'shortcut_mode';
+                       $selectFields[] = 'mount_pid';
                }
                if (is_array($GLOBALS['TCA'][$table]['ctrl']['enablecolumns'])) {
                        $selectFields = array_merge($selectFields, $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']);