Issue Bug Resolved

#111068Child removed from default record stays in translation (monoglot inline)

Alexander Schnitzler 10/14/26, 17:48 updated 10/23/26, 14:45

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), field offers: inline, foreign_field = parentid, l10n_mode = exclude
  • Child tx_testirreforeignfield_offer without languageField / transOrigPointerField, with origUid = 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

  1. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-23T14:15:16+00:00" > 10/23/26, 14:15 </span>

    Applied in changeset commit:35696b047eea4820cc43419d8d7d17d5b8f95252.

  2. Gerrit Code Review pushed patch set 2 for 14.3 to change 97082 status Resolved Under Review <span data-processor="relativetime" data-value="2026-10-23T14:29:36+00:00" > 10/23/26, 14:29 </span>

  3. Anonymous commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-10-23T14:45:22+00:00" > 10/23/26, 14:45 </span>

    Applied in changeset commit:84442a2000fdc0a6faa894c9fac6d8d3985c3868.