Project

General

Profile

Actions

Bug #97505

closed

Duplicate translated relations after moving default language content element

Added by Rudy Gnodde about 2 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2022-04-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

typo3-issue145.tgz (42.6 KB) typo3-issue145.tgz Rudy Gnodde, 2022-04-28 11:43

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #88980: Translating records with FAL relation where allowLanguageSynchronization set to trueUnder Review2019-08-20

Actions
Actions #1

Updated by Gerrit Code Review almost 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

Actions #2

Updated by Rudy Gnodde almost 2 years ago

  • Related to Bug #88980: Translating records with FAL relation where allowLanguageSynchronization set to true added
Actions #3

Updated by Gerrit Code Review almost 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

Actions #4

Updated by Gerrit Code Review 12 months 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

Actions #5

Updated by Gerrit Code Review 10 months 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

Actions #6

Updated by Oliver Hader 10 months ago

  • Category set to DataHandler aka TCEmain

→ let's continue with issue #88980

Actions #7

Updated by Oliver Hader 10 months ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF