[BUGFIX] CE with "All languages" doesn't show with every lang
authorMarcus Schwemer <ms@schwemer.de>
Tue, 19 Jun 2012 06:55:48 +0000 (08:55 +0200)
committerSteffen Ritter <info@rs-websystems.de>
Sun, 14 Oct 2012 16:40:00 +0000 (18:40 +0200)
The page module should also list the content elements
with language set to "All". Now elements set to "All" are displayed
in all languages, not only with the default language.

Change-Id: I2b0875e1993b3af29fbdec4f700b16a7c56696d8
Fixes: #24087
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/15615
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/cms/layout/class.tx_cms_layout.php

index 594ee96..0b2ef93 100755 (executable)
@@ -473,7 +473,7 @@ class tx_cms_layout extends recordList {
 
                        // For EACH languages... :
                        foreach ($langListArr as $lP) { // If NOT languageMode, then we'll only be through this once.
-                               $showLanguage = $lP == 0 ? ' AND sys_language_uid IN (0,-1)' : ' AND sys_language_uid=' . $lP;
+                               $showLanguage = ' AND sys_language_uid IN (' . $lP . ',-1)';
                                $cList = explode(',', $this->tt_contentConfig['cols']);
                                $content = array();
                                $head = array();