Commit 4e275727 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Georg Ringer
Browse files

[BUGFIX] Restore sort link in FileList

This restores the sort link for columns with
"special" label, such as "tstamp" or "crdate".

Resolves: #96489
Releases: main, 11.5
Change-Id: Iae7c9d2056256df5156f6fe8773d6b18e7ba8898
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72947

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 608f238a
......@@ -358,7 +358,7 @@ class FileList
if ($fieldName === '_SELECTOR_') {
$theData[$fieldName] = $this->renderCheckboxActions();
} elseif ($specialLabel = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.' . $fieldName)) {
$theData[$fieldName] = htmlspecialchars($specialLabel);
$theData[$fieldName] = $this->linkWrapSort($fieldName, $specialLabel);
} elseif ($customLabel = $this->getLanguageService()->getLL('c_' . $fieldName)) {
$theData[$fieldName] = $this->linkWrapSort($fieldName, $customLabel);
} elseif ($fieldName !== 'icon') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment