[BUGFIX] CE with "All languages" isn't shown in Page module
authorGeorg Ringer <mail@ringerge.org>
Fri, 23 Mar 2012 11:12:57 +0000 (12:12 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Sun, 14 Oct 2012 16:18:28 +0000 (18:18 +0200)
The page module should also list the content elements
with language set to "All"

Change-Id: I6d8aaf4829a70b3945508884d9a09cf23d1e4842
Resolves: #24087
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/12078
Reviewed-by: Marcus Schwemer
Tested-by: Marcus Schwemer
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/sysext/cms/layout/class.tx_cms_layout.php

index be53793..4393e6f 100755 (executable)
@@ -378,7 +378,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 = $this->defLangBinding && $lP == 0 ? ' AND sys_language_uid IN (0,-1)' : ' AND sys_language_uid=' . $lP;
+                               $showLanguage = $lP == 0 ? ' AND sys_language_uid IN (0,-1)' : ' AND sys_language_uid=' . $lP;
                                $cList = explode(',', $this->tt_contentConfig['cols']);
                                $content = array();
                                $head = array();
@@ -407,7 +407,7 @@ class tx_cms_layout extends recordList {
 
                                                if (is_array($row) && (int) $row['t3ver_state'] != 2) {
                                                        $singleElementHTML = '';
-                                                       if (!$lP) {
+                                                       if (!$lP && $row['sys_language_uid'] != -1) {
                                                                $defLanguageCount[$key][] = $row['uid'];
                                                        }