Bug #97505
closedDuplicate translated relations after moving default language content element
0%
Description
Inline relations with `config.behavior.allowLanguageSynchronization` set to true in translated tt_content records are duplicated when there is more than 1 translation and the main language content element is moved.
I've added a ddev environment with a TYPO3 10.4 installation where this can be reproduced. This is a clean installation. I've also tested it in TYPO3 11 and the problem still exists. The tgz file contains an INSTALL.txt document on how to install the test site.
To reproduce:
- In TCA for "assets" field in "tt_content" set "config.behavior.allowLanguageSynchronization" to "true". This has already been done in the provided ddev test site in EXT:site_test/Configuration/TCA/Overrides/tt_content.php
Correct behavior:
- Log in to backend (username: admin, password: Welkom01!)
- Open page "Home" in page module
- Make sure you're on "Languages" view with "English" selected as language (top select boxes)
- In "English" language, move "Test with assets" content element to below (or above if it is already below) "Test without assets" content element
- Reload page module (content for other languages don't reload automatically (Bug?))
- Result: The content element is moved for all languages and each content element has 1 asset. This is correct
Incorrect behavior:
- Log in to backend (username: admin, password: Welkom01!)
- Open page "Home" in page module
- Make sure you're on "Languages" view with "English" selected as language (top select boxes)
- In "Nederlands" language, edit "Test with assets" content element. In tab "Media", remove YouTube video, but keep "Translation behavior" on "Value of default language"
- Save and close content element
- In "English" language, move "Test with assets" content element to below (or above if it is already below) "Test without assets" content element
- Reload page module (content for other languages don't reload automatically (Bug?))
- Result: The content element is moved for all languages. Content element in "Deutsch" language now has 2 assets and content element in "Français" language has 3 assets. This is NOT correct
Files