[BUGFIX] Don't show translated categories in parent tree 11/22011/2
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 13:10:02 +0000 (15:10 +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/22011
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
t3lib/stddb/tca_sys_category.php

index 5f50637..2281d98 100644 (file)
@@ -123,7 +123,7 @@ $TCA['sys_category'] = 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'
                                )