[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 22:03:16 +0000 (23:03 +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: I5904b7955b6ecdffb34c075de781985ac4e52e1e
Fixes: #32693
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/8919
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 ';
                }