[BUGFIX] Fix SQL error when bookmarking a sys_file_metadata record 10/53710/4
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 15 Aug 2017 18:05:14 +0000 (20:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 20 Aug 2017 12:29:45 +0000 (14:29 +0200)
The type field contains a non existing field. Do not select this
field in the query.

Resolves: #82105
Releases: master, 8.7, 7.6
Change-Id: I9840712f4f87135740512ddf91a2b921b2515612
Reviewed-on: https://review.typo3.org/53710
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer <sascha@sascha-egerer.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php

index 9728458..3ffc2e5 100644 (file)
@@ -807,9 +807,6 @@ class ShortcutToolbarItem implements ToolbarItemInterface
                     if (is_array($GLOBALS['TCA'][$table]['ctrl']['enablecolumns'])) {
                         $selectFields = array_merge($selectFields, $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']);
                     }
-                    if ($GLOBALS['TCA'][$table]['ctrl']['type']) {
-                        $selectFields[] = $GLOBALS['TCA'][$table]['ctrl']['type'];
-                    }
                     if ($GLOBALS['TCA'][$table]['ctrl']['typeicon_column']) {
                         $selectFields[] = $GLOBALS['TCA'][$table]['ctrl']['typeicon_column'];
                     }