[BUGFIX] TSconfig option hides table pages_language_overlay
authorStefan Geith <typo3dev2012@geithware.de>
Mon, 19 Dec 2011 14:40:22 +0000 (15:40 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Wed, 8 Feb 2012 21:59:12 +0000 (22:59 +0100)
If page TSconfig

mod.web_list.hideTranslations=*

is set, then also the table 'pages_language_overlay' is hidden,
which should be visible.

Change-Id: I5d9b0636c2f6d8f71abb789c51c213183b8238fa
Fixes: #32693
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/7387
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
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 === '*')
-                       && !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 ';
                }