Fixed issue #16142: Records should not be indented if there is no parent record ...
authorErnesto Baschny <ernst@cron-it.de>
Wed, 26 Jan 2011 00:13:43 +0000 (00:13 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Wed, 26 Jan 2011 00:13:43 +0000 (00:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10315 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list_extra.inc

index 5caaf7b..9300b18 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2011-01-25  Ernesto Baschny  <ernst@cron-it.de>
 
+       * Fixed issue #16142: Records should not be indented if there is no parent record (Thanks to Georg Ringer)
        * Fixed issue #17316: Flag sprites was not updated after renaming canada.gif back to ca.gif and "multi-language" was missing
        * Fixed issue #17312: Pagetree - Provide a default contextmenu action to open custom urls (Thanks to Stefan Galinksi)
        * Re-added feature #17313: Since using new flags from sprites (#15668), the sys_language hasn't a flag-selector by icon (Thanks to Jo Hasenau)
index 4658f58..4d3d93e 100644 (file)
@@ -692,8 +692,9 @@ class localRecordList extends recordList {
 
                                        $localizationMarkerClass = '';
                                        if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])
-                                       && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] != 0) {
-                                                       // it's a translated record
+                                       && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] != 0
+                                       && $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']] != 0) {
+                                                       // it's a translated record with a language parent
                                                $localizationMarkerClass = ' localization';
                                        }
                                } elseif ($fCol == 'pid') {
@@ -1580,7 +1581,7 @@ class localRecordList extends recordList {
                        }
 
                        if ($lNew)      $out[1].= $lNew;
-               } else {
+               } else if ($row['l18n_parent']) {
                        $out[0] = '&nbsp;&nbsp;&nbsp;&nbsp;'.$out[0];
                }