Bug #77902
closedTranslating category causes creation of non-necessary relations
100%
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
Updated by Oliver Hader over 7 years ago
sys_category.items
is causing this behavior and duplicates all references per default (as for any other record duplicate in TYPO3).
Updated by Rémy DANIEL over 5 years ago
Oliver Hader, by "per default" you mean that we can disable this behaviour?
Updated by Andreas Kießling over 5 years ago
The bug report seems to be still valid for 9.5.8 :/
Any hint on how to deal with this easily?
Updated by Andreas Kießling over 5 years ago
Adding items to $GLOBALS['TCA']['sys_category']['ctrl']['setToDefaultOnCopy'] seems to do the trick.
Updated by Christian Kuhn about 3 years ago
- Related to Bug #89659: Translating a record creates superfluous wrong mm relations added
Updated by Christian Kuhn about 3 years ago
- Related to Bug #89620: Creating MM relations in a group field with a translatable table causes translated records to show up twice added
Updated by Christian Kuhn about 3 years ago
- Related to Bug #91842: Entries in sys_category_record_mm are created also for translated categories added
Updated by Gerrit Code Review about 3 years ago
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71094
Updated by Christian Kuhn about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e5dbc1e775667ffcd4f8b46ab4cae2c535d2fcd7.