Project

General

Profile

Actions

Bug #77902

closed

Translating category causes creation of non-necessary relations

Added by David Lemaitre about 8 years ago. Updated about 3 years ago.

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

100%

Estimated time:
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


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #89659: Translating a record creates superfluous wrong mm relationsClosed2019-11-13

Actions
Related to TYPO3 Core - Bug #89620: Creating MM relations in a group field with a translatable table causes translated records to show up twiceClosed2019-11-08

Actions
Related to TYPO3 Core - Bug #91842: Entries in sys_category_record_mm are created also for translated categoriesClosed2020-07-22

Actions
Actions #1

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).

Actions #2

Updated by Rémy DANIEL over 5 years ago

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

Actions #3

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?

Actions #4

Updated by Andreas Kießling over 5 years ago

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

Actions #5

Updated by Christian Kuhn about 3 years ago

  • Related to Bug #89659: Translating a record creates superfluous wrong mm relations added
Actions #6

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
Actions #7

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
Actions #8

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

Actions #9

Updated by Christian Kuhn about 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF