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
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74610
Updated by Rudy Gnodde over 2 years ago
- Related to Bug #88980: Translating records with FAL relation where allowLanguageSynchronization set to true added
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74610
Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74610
Updated by Gerrit Code Review over 1 year ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74610
Updated by Oliver Hader over 1 year ago
- Category set to DataHandler aka TCEmain
→ let's continue with issue #88980
Updated by Oliver Hader over 1 year ago
- Status changed from Under Review to Closed