From 023945fc83474f7f85c55f770fde127c5cec1670 Mon Sep 17 00:00:00 2001 From: Frans Saris <franssaris@gmail.com> Date: Fri, 28 Nov 2014 08:41:22 +0100 Subject: [PATCH] [BUGFIX] Followup: Replace shortcut item icons with sprites MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If a the linked record of a shortcut is deleted you get a Fatal error that breaks the BE. This patch makes sure that the correct variable types are used for IconUtility::getSpriteIconForRecord() Resolves: #63319 Releases: master Change-Id: Ia7aa5237b24c0190ad87b9353f29735682cb5ebb Reviewed-on: http://review.typo3.org/34723 Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de> Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de> Reviewed-by: Frank Nägler <typo3@naegler.net> Tested-by: Frank Nägler <typo3@naegler.net> --- .../Classes/Backend/ToolbarItems/ShortcutToolbarItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php b/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php index 37dfe1f884e8..7cddfd89fa6f 100644 --- a/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php +++ b/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php @@ -661,7 +661,7 @@ class ShortcutToolbarItem implements ToolbarItemInterface { ); $result = $databaseConnection->exec_SELECT_queryArray($sqlQueryParts); $row = $databaseConnection->sql_fetch_assoc($result); - $icon = IconUtility::getSpriteIconForRecord($table, $row, array('title' => $titleAttribute)); + $icon = IconUtility::getSpriteIconForRecord($table, (array)$row, array('title' => $titleAttribute)); } elseif ($shortcut['type'] == 'new') { $icon = IconUtility::getSpriteIconForRecord($table, array(), array('title' => $titleAttribute)); } -- GitLab