[BUGFIX] TSconfig option hides table pages_language_overlay
[Packages/TYPO3.CMS.git] / typo3 / class.db_list.inc
index 3a8faa9..2fb0ca6 100644 (file)
@@ -498,7 +498,8 @@ class recordList extends t3lib_recordList {
 
                        // Filter out records that are translated, if TSconfig mod.web_list.hideTranslations is set
                if ((in_array($table, t3lib_div::trimExplode(',', $this->hideTranslations)) || $this->hideTranslations === '*')
 
                        // Filter out records that are translated, if TSconfig mod.web_list.hideTranslations is set
                if ((in_array($table, t3lib_div::trimExplode(',', $this->hideTranslations)) || $this->hideTranslations === '*')
-                       && !empty($GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'])) {
+                       && !empty($GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'])
+                       && strcmp($table, 'pages_language_overlay')) {
                        $queryParts['WHERE'] .= ' AND ' . $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] . '=0 ';
                }
 
                        $queryParts['WHERE'] .= ' AND ' . $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'] . '=0 ';
                }