[BUGFIX] Don't show translated categories in parent tree 26/21626/6
authorMarkus Klein <klein.t3@mfc-linz.at>
Mon, 24 Jun 2013 11:22:15 +0000 (13:22 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 6 Jul 2013 12:59:44 +0000 (14:59 +0200)
The parent category tree should only show categories in default
language.

Resolves: #44915
Releases: 6.2, 6.1, 6.0
Change-Id: I7920cf7ae208ba2db3bd24f7da5439824064c167
Reviewed-on: https://review.typo3.org/21626
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Configuration/TCA/sys_category.php

index 59af0bb..1bcc841 100644 (file)
@@ -144,7 +144,7 @@ return array(
                                'type' => 'select',
                                'renderMode' => 'tree',
                                'foreign_table' => 'sys_category',
-                               'foreign_table_where' => ' ORDER BY sys_category.title ASC',
+                               'foreign_table_where' => ' AND sys_category.sys_language_uid IN (-1,0) ORDER BY sys_category.title ASC',
                                'treeConfig' => array(
                                        'parentField' => 'parent'
                                )
@@ -163,4 +163,4 @@ return array(
                )
        )
 );
-?>
+?>
\ No newline at end of file