Bug #77902

Translating category causes creation of non-necessary relations

Added by David Lemaitre over 3 years ago. Updated 7 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Categorization API
Target version:
-
Start date:
2016-09-09
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

For a multilingual website, translating a category causes creation of non-necessary records in the sys_category_record_mm table.

Scenario :

- Assign a category to a file metadata without translation
- Translate this category

=> A new record is created in the sys_category_record_mm table for the relation between the file metadata ID & the translated record ID.

This is causing trouble with solr extension which find 2 relations for categories instead of just one when solr is indexing files.

Note : If I edit the file metadata & save without making changes, the 2nd relation in the sys_category_record_mm table is removed !

Using:
TYPO3 6.2.26
PHP 5.4

History

#1 Updated by Oliver Hader almost 3 years ago

sys_category.items is causing this behavior and duplicates all references per default (as for any other record duplicate in TYPO3).

#2 Updated by DANIEL Rémy 8 months ago

Oliver Hader, by "per default" you mean that we can disable this behaviour?

#3 Updated by Andreas Kiessling 7 months ago

The bug report seems to be still valid for 9.5.8 :/
Any hint on how to deal with this easily?

#4 Updated by Andreas Kiessling 7 months ago

Adding items to $GLOBALS['TCA']['sys_category']['ctrl']['setToDefaultOnCopy'] seems to do the trick.

Also available in: Atom PDF