Project

General

Profile

Actions

Bug #97505

closed

Duplicate translated relations after moving default language content element

Added by Rudy Gnodde over 2 years ago. Updated over 1 year 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

Also available in: Atom PDF