#111068Child removed from default record stays in translation (monoglot inline)
Description
A translatable parent record has an inline relation (foreign_field) to a child table without language configuration (“monoglot” children, origUid set). With l10n_mode = exclude (or allowLanguageSynchronization) on the inline field, DataMapProcessor gives every translation of the parent its own copy of each child.
When a child is removed from the default language record, the copy of that child stays attached to every translation.
Reproduction
- Parent
tx_testirreforeignfield_hotel(translatable), fieldoffers: inline,foreign_field = parentid,l10n_mode = exclude - Child
tx_testirreforeignfield_offerwithoutlanguageField/transOrigPointerField, withorigUid = t3_origuid - Hotel 1 [en] with offers 1 and 2; its German translation hotel 2 owns the copies 3 (origin 1) and 4 (origin 2)
Remove offer 2 from the default hotel the way the backend does it:
$dataHandler->start(
['tx_testirreforeignfield_hotel' => [1 => ['offers' => '1']]],
['tx_testirreforeignfield_offer' => [2 => ['delete' => 1]]],
);
$dataHandler->process_datamap();
$dataHandler->process_cmdmap();
Expected
Copy 4 is deleted (or at least no longer attached to the translation), like its origin 2.
Actual
Copy 4 stays attached to the German hotel, deleted = 0.
Cause
DataMapProcessor::synchronizeReferences() computes $removeIds (children persisted at the translation that are no longer needed), but returns early before using them:
if (empty($removeAncestorIds) && empty($missingAncestorIds)) {
$this->modifyDataMap(...);
return;
}
$removeAncestorIds is empty here, because the dependent id map is only built from the remaining children. Adding empty($removeIds) && to the condition makes the reproduction pass. For language-aware children the bug is hidden, because deleting the default child cascades to its localizations.
Reviews 2
History 28
-
Gerrit Code Review pushed patch set 1 for main to change 96695 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-14T17:59:54+00:00" > 10/14/26, 17:59 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96695 <span data-processor="relativetime" data-value="2026-10-14T18:09:53+00:00" > 10/14/26, 18:09 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 96695 <span data-processor="relativetime" data-value="2026-10-14T18:55:54+00:00" > 10/14/26, 18:55 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 96695 <span data-processor="relativetime" data-value="2026-10-22T19:10:13+00:00" > 10/22/26, 19:10 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97082 <span data-processor="relativetime" data-value="2026-10-23T14:12:46+00:00" > 10/23/26, 14:12 </span>
-
Anonymous commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-23T14:15:16+00:00" > 10/23/26, 14:15 </span> -
Gerrit Code Review pushed patch set 2 for 14.3 to change 97082 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-10-23T14:29:36+00:00" > 10/23/26, 14:29 </span> -
Anonymous commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-10-23T14:45:22+00:00" > 10/23/26, 14:45 </span>Applied in changeset commit:84442a2000fdc0a6faa894c9fac6d8d3985c3868.
Applied in changeset commit:35696b047eea4820cc43419d8d7d17d5b8f95252.