Revert "[BUGFIX] Fix wrong column title in web>list for field colpos" 42/18942/4
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 15 Mar 2013 15:02:19 +0000 (16:02 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 15 Mar 2013 15:24:54 +0000 (16:24 +0100)
This reverts commit 765ebd0cd992b86f8002f932bb51b2a39c0ace99

The patch triggers warnings and errors in multiple extensions. Digging
into the details shows the implementation is neither finished nor
stable. See issue #25113 for a detailed analysis.

Change-Id: I1ff1ea11feb34c71d3ee42789c3deda130aa9a0e
Related: #25113
Fixes: #45833
Releases: 6.1, 6.0, 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/18942
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 5f57bd7..8eb24c3 100644 (file)
@@ -619,25 +619,6 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\AbstractDataba
                        $alttext = \TYPO3\CMS\Backend\Utility\BackendUtility::getRecordIconAltText($row, $table);
                        $iconImg = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord($table, $row, array('title' => htmlspecialchars($alttext), 'style' => $indent ? ' margin-left: ' . $indent . 'px;' : ''));
                        $theIcon = $this->clickMenuEnabled ? $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg, $table, $row['uid']) : $iconImg;
-
-                       // Have labels respect possible itemsProcFunc results
-                       /** @var $formEngine \TYPO3\CMS\Backend\Form\FormEngine */
-                       $formEngine = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
-                       if (isset($GLOBALS['TCA'][$table]['columns'])) {
-                               foreach ($GLOBALS['TCA'][$table]['columns'] as $field => $fieldSetup) {
-                                       if (isset($fieldSetup['config']['itemsProcFunc']) && $fieldSetup['config']['itemsProcFunc']) {
-                                               $GLOBALS['TCA'][$table]['columns'][$field]['config']['items'] = $formEngine->procItems(
-                                                       $fieldSetup['config']['items'],
-                                                       $fieldSetup['config']['itemsProcFunc'],
-                                                       $fieldSetup['config'],
-                                                       $table,
-                                                       $row,
-                                                       $field
-                                               );
-                                       }
-                               }
-                       }
-
                        // Preparing and getting the data-array
                        $theData = array();
                        foreach ($this->fieldArray as $fCol) {