[FOLLOWUP][TASK] Remove support for transForeignTable in TCA 03/51003/2
authorOliver Hader <oliver@typo3.org>
Tue, 20 Dec 2016 10:29:18 +0000 (11:29 +0100)
committerBenni Mack <benni@typo3.org>
Tue, 20 Dec 2016 10:42:54 +0000 (11:42 +0100)
Some variable names have not been adjusted correctly.

Resolves: #78191
Releases: master
Change-Id: I107b9c5d146fb4a027d6457194c1c4e46f06cd8c
Reviewed-on: https://review.typo3.org/51003
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 93bb856..db47a5f 100644 (file)
@@ -552,7 +552,7 @@ class PageRepository
             if ($GLOBALS['TCA'][$table] && $GLOBALS['TCA'][$table]['ctrl']['languageField'] && $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']) {
                 // Return record for ALL languages untouched
                 // TODO: Fix call stack to prevent this situation in the first place
-                if ($tableName !== 'pages_language_overlay' && (int)$row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] !== -1) {
+                if ($table !== 'pages_language_overlay' && (int)$row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] !== -1) {
                     // Will not be able to work with other tables (Just didn't implement it yet;
                     // Requires a scan over all tables [ctrl] part for first FIND the table that
                     // carries localization information for this table (which could even be more
index 2a6d2a8..3044c74 100644 (file)
@@ -515,7 +515,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
         $thumbsCol = $GLOBALS['TCA'][$table]['ctrl']['thumbnail'];
         $l10nEnabled = $GLOBALS['TCA'][$table]['ctrl']['languageField']
                      && $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']
-                     && $tableName !== 'pages_language_overlay';
+                     && $table !== 'pages_language_overlay';
         $tableCollapsed = (bool)$this->tablesCollapsed[$table];
         // prepare space icon
         $this->spaceIcon = '<span class="btn btn-default disabled">' . $this->iconFactory->getIcon('empty-empty', Icon::SIZE_SMALL)->render() . '</span>';