[BUGFIX] Fix SQL error when bookmarking a sys_file_metadata record 47/53747/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 15 Aug 2017 18:05:14 +0000 (20:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 21 Aug 2017 09:37:28 +0000 (11:37 +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/53747
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php

index 5e2e4f3..349ac27 100644 (file)
@@ -819,9 +819,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'];
                     }