Project

General

Profile

Bug #80400 » DatabaseRecordList.php.patch

Viktor Leonhardt, 2017-03-22 16:38

View differences:

DatabaseRecordList.php 2017-03-22 16:35:19.894301486 +0100
// at the end
$sortLabel = BackendUtility::getItemLabel($table, $fCol);
if ($sortLabel !== null) {
$sortLabel = $lang->sL($sortLabel, true);
$sortLabel = rtrim(trim($sortLabel), ':');
$newLabel = array();
if(is_array($sortLabel)) {
foreach($sortLabel as $label) {
$newLabel[] = rtrim(trim($lang->sL($label, true)), ':');
}
$sortLabel = join(', ', $newLabel);
} else {
$sortLabel = $lang->sL($sortLabel, true);
$sortLabel = rtrim(trim($sortLabel), ':');
}
} else {
// No TCA field, only output the $fCol variable with square brackets []
$sortLabel = htmlspecialchars($fCol);
(2-2/2)