diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index c17583b..ab0e98e 100644 --- a/typo3/sysext/recordlist/Classes/RecordLiast/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -1119,9 +1119,11 @@ class DatabaseRecordList } // If any records was selected, render the list: if ($dbCount) { + $tableIdentifier = $table; // Use a custom table title for translated pages if ($table == 'pages' && $this->showOnlyTranslatedRecords) { $tableTitle = htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:pageTranslation')); + $tableIdentifier = 'pages_language_overlay'; } else { $tableTitle = htmlspecialchars($lang->sL($GLOBALS['TCA'][$table]['ctrl']['title'])); if ($tableTitle === '') { @@ -1145,12 +1147,12 @@ class DatabaseRecordList // Render collapse button if in multi table mode $collapseIcon = ''; if (!$this->table) { - $href = htmlspecialchars($this->listURL() . '&collapse[' . $table . ']=' . ($tableCollapsed ? '0' : '1')); + $href = htmlspecialchars($this->listURL() . '&collapse[' . $tableIdentifier . ']=' . ($tableCollapsed ? '0' : '1')); $title = $tableCollapsed ? htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.expandTable')) : htmlspecialchars($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.collapseTable')); $icon = '' . $this->iconFactory->getIcon(($tableCollapsed ? 'actions-view-list-expand' : 'actions-view-list-collapse'), Icon::SIZE_SMALL)->render() . ''; - $collapseIcon = '' . $icon . ''; + $collapseIcon = '' . $icon . ''; } $tableHeader .= $theData[$titleCol] . $collapseIcon; } @@ -1291,15 +1293,15 @@ class DatabaseRecordList
' . $tableHeader . '
-
+
- +
' . $out . '