[BUGFIX] Tooltip for a shortcut in list view shows id=0 37/31337/2
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 4 Jul 2014 19:02:17 +0000 (21:02 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 5 Jul 2014 12:19:17 +0000 (14:19 +0200)
In the list view the tooltip for a shortcut always shows
id=0 because the field shortcut is not fetched from the database.
Add this to the list of fields to select.

Resolves: #60033
Releases: 6.3,6.2
Change-Id: Id4949e6699657a57975977b3450f54bc3216d06d
Reviewed-on: https://review.typo3.org/31328
Reviewed-by: Marcin Sągol
Tested-by: Marcin Sągol
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
(cherry picked from commit 683ae94fb8bdf022981c9045c81e37149c32160e)
Reviewed-on: https://review.typo3.org/31337

typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 918c223..1c574f5 100644 (file)
@@ -303,6 +303,7 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\AbstractDataba
                        $selectFields[] = 'extendToSubpages';
                        $selectFields[] = 'nav_hide';
                        $selectFields[] = 'doktype';
+                       $selectFields[] = 'shortcut';
                }
                if (is_array($GLOBALS['TCA'][$table]['ctrl']['enablecolumns'])) {
                        $selectFields = array_merge($selectFields, $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']);