[BUGFIX] Use correct parameter type in insertPositionIcon
authorJigal van Hemert <jigal@xs4all.nl>
Sun, 25 Nov 2012 11:47:23 +0000 (12:47 +0100)
committerJigal van Hemert <jigal@xs4all.nl>
Sun, 25 Nov 2012 11:56:17 +0000 (12:56 +0100)
PagePositionMap::printContentElementsColumns must call insertPositionIcon
with fake row array instead of empty string as first parameter.

Change-Id: I11afd7e8cad47b6892f0cd60feea8b53ff4d5945
Fixes: #43284
Releases: 6.0
Reviewed-on: http://review.typo3.org/16722
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/backend/Classes/Tree/View/PagePositionMap.php

index cc82198..4ead222 100644 (file)
@@ -376,7 +376,7 @@ class PagePositionMap {
                foreach ($colPosArray as $kk => $vv) {
                        $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tt_content', 'pid=' . intval($pid) . ($showHidden ? '' : \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('tt_content')) . ' AND colPos=' . intval($vv) . (strcmp($this->cur_sys_language, '') ? ' AND sys_language_uid=' . intval($this->cur_sys_language) : '') . \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('tt_content') . \TYPO3\CMS\Backend\Utility\BackendUtility::versioningPlaceholderClause('tt_content'), '', 'sorting');
                        $lines[$vv] = array();
-                       $lines[$vv][] = $this->insertPositionIcon('', $vv, $kk, $moveUid, $pid);
+                       $lines[$vv][] = $this->insertPositionIcon(array('uid' => ''), $vv, $kk, $moveUid, $pid);
                        while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                                \TYPO3\CMS\Backend\Utility\BackendUtility::workspaceOL('tt_content', $row);
                                if (is_array($row)) {