Project

General

Profile

Actions

Bug #80400

closed

TYPO3\CMS\Backend\Utility::getItemLabel does not return a label, if label_alt is used in TCA

Added by Viktor Leonhardt about 7 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2017-03-22
Due date:
% Done:

60%

Estimated time:
1.00 h
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

The function TYPO3\CMS\Backend\Utility\BackendUtility::getItemLabel does not return a label if label_alt is set in the TCA. This can be solved, if the passed column name is split by ',' and then returns an array of labels. Next, the function TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::renderListHeader should be able to process an array instead of a single string.

Attached are two Patches, which solve this behavior.


Files

BackendUtility.php.patch (1.02 KB) BackendUtility.php.patch Viktor Leonhardt, 2017-03-22 16:38
DatabaseRecordList.php.patch (1 KB) DatabaseRecordList.php.patch Viktor Leonhardt, 2017-03-22 16:38
Actions

Also available in: Atom PDF