[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)
committerGeorg Ringer <mail@ringerge.org>
Mon, 13 Aug 2012 05:24:22 +0000 (07:24 +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/12185
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Stefan Neufeind
Reviewed-by: Felix Kopp
Tested-by: Felix Kopp
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/cms/layout/class.tx_cms_layout.php

index 144a13f..1912d74 100755 (executable)
@@ -377,7 +377,7 @@ class tx_cms_layout extends recordList {
                                // For each languages... :
                                // If not languageMode, then we'll only be through this once.
                        foreach ($langListArr as $lP) {
-                               $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();
@@ -2113,4 +2113,4 @@ class tx_cms_layout extends recordList {
                return strip_tags($content);
        }
 }
-?>
\ No newline at end of file
+?>