Parly fixed #4013: New records in non-default language are displayed in list-module...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 19 Aug 2006 11:39:59 +0000 (11:39 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 19 Aug 2006 11:39:59 +0000 (11:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1681 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list_extra.inc

index 96bcd95..0f0b098 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-19 Ingmar Schlecht  <ingmar@typo3.org>
+
+       * Parly fixed #4013: New records in non-default language are displayed in list-module in localization view too now even if they don't have a parent record in the default language.
+
 2006-08-17 Ingmar Schlecht  <ingmar@typo3.org>
 
        * Added text to Update Wizard informing about the change of the default values of "config.inlineStyle2TempFile" and "config.removeDefaultJS" depending on compatVersion >= 4.0
index 12b2641..22fece9 100755 (executable)
@@ -319,7 +319,11 @@ class localRecordList extends recordList {
                if ($this->localizationView && $l10nEnabled)    {
                        $this->fieldArray[] = '_LOCALIZATION_';
                        $this->fieldArray[] = '_LOCALIZATION_b';
-                       $addWhere.=' AND '.$TCA[$table]['ctrl']['languageField'].'<=0';
+                       $addWhere.=' AND (
+                               '.$TCA[$table]['ctrl']['languageField'].'<=0
+                               OR 
+                               '.$TCA[$table]['ctrl']['transOrigPointerField'].' = 0
+                       )';
                }
                if (!t3lib_div::inList($rowlist,'_CONTROL_'))   {
                        $this->fieldArray[] = '_CONTROL_';