Project

General

Profile

Actions

Bug #81761

closed

l10n_mode exclude is ignored in IRRE relations and deletes unrelated child records during l10n

Added by Philipp Gampe over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2017-06-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

If a records has a child records as IRRE relation with foreign field,
but the child records also exist freely without parent record and the
default value for the foreign field is 0 (Zero), then translating
the parent records will delete all child records without a parent.

Bonus: If the child records is not translatable, a "translated" child
record is created anyway.

Expected behavior:
Translated parent and do not show child record IRRE in the translation
(Formengine).
Free children are left alone.
Bonus: Do not create a new child record for each translation.

Actual behavior:
Child record relation is not shown in translation (form engine). [correct]
All free children are removed. [big problem]
Bonus: A new child record is created for each translation. [small problem]

Workaround:
Make the default value for the foreign field not zero (e.g. -1).


Files

phil_foreign_0.0.0_201706301941.zip (3.02 KB) phil_foreign_0.0.0_201706301941.zip Sample extension Philipp Gampe, 2017-06-30 19:41

Related issues 4 (1 open3 closed)

Related to TYPO3 Core - Task #79244: Streamline l10n_mode exclude data processingAcceptedOliver Hader

Actions
Related to TYPO3 Core - Task #78745: Get rid of localizationMode of TCA type inlineClosed2016-11-18

Actions
Related to TYPO3 Core - Bug #80460: l10n_mode exclude without sync in T3 8.6.1Closed2017-03-26

Actions
Related to TYPO3 Core - Bug #83117: l10n_mode exclude IRRE Relations are translatedRejected2017-11-27

Actions
Actions

Also available in: Atom PDF