diff --git a/typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php b/typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php index 90ded65bd051a614773b939c224157730ff50edd..d154b15b65d8368ddc2ad05a21c0038dd93d1f46 100644 --- a/typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php +++ b/typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php @@ -154,8 +154,8 @@ abstract class AbstractRecordList { */ public $languageIconTitles = array(); - // TranslateTools object /** + * @var \TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider * @todo Define visibility */ public $translateTools; diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index 94995f1fc75b4847b535e415b609046e06e3c723..19c6916ca7c3f5f97a8849d7f062dbf6ddb8c63b 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -1267,11 +1267,13 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\AbstractDataba 0 => '', 1 => '' ); + // Reset translations + $this->translations = array(); $translations = $this->translateTools->translationInfo($table, $row['uid'], 0, $row, $this->selFieldList); - $this->translations = $translations['translations']; // Language title and icon: $out[0] = $this->languageFlag($row[$GLOBALS['TCA'][$table]['ctrl']['languageField']]); if (is_array($translations)) { + $this->translations = $translations['translations']; // Traverse page translations and add icon for each language that does NOT yet exist: $lNew = ''; foreach ($this->pageOverlays as $lUid_OnPage => $lsysRec) { @@ -1549,4 +1551,4 @@ class DatabaseRecordList extends \TYPO3\CMS\Recordlist\RecordList\AbstractDataba } -?> \ No newline at end of file +?>