Review main Ready for review

98113[BUGFIX] Remap l10n_source of copied translated inline children

Alexander Schnitzler CR 0 V +1 Hard +412 −0 updated 11/27/26, 22:00

Commit message

When a single record is copied together with its translations, the
inline children of the translated record are copied by
copyRecord_raw(). Their l18n_parent is a relation and is remapped to
the copied default child, but the translation source field is a
passthrough field and keeps pointing to the original record.

Copying a whole page already remaps the field, see #97469, so the
same copy operation leaves inconsistent pointers depending on the
path it takes. Backend lookups that decide by the translation source,
such as the localization wizard, then do not find the translation of
the copied child, and localizing it again creates duplicates.

The translation source field is now registered for remapping like
l18n_parent and mapped to the copy of its former source, if that
source was copied in the same run. Workspace versions keep the
pointer of their live record and are not registered.
Show more Show less

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/13/98113/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/13/98113/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V +1 Needs a vote
    • Oliver Klee +1
    • core-ci +1 CI

Merge conflicts 33

Show 28 more changes Show less

Issues 4

Files 13

Review log 46

  1. Alexander Schnitzler uploaded patch set 1 11/27/26, 18:51

  2. core-ci voted on patch set 1 V -1 11/27/26, 19:01 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115751

  3. Alexander Schnitzler uploaded patch set 2 V -1 11/27/26, 19:08

  4. core-ci voted on patch set 2 V +1 11/27/26, 19:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115752

  5. Oliver Klee voted on patch set 2 V +1 11/27/26, 19:30

  6. Benni Mack wrote 11/27/26, 22:00

    Topic set to DataHandler