Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Stale

95042[WIP][BUGFIX] Restrict selectable items of transOrigPointerField

Eric Harrer CR 0 V 0 Hard +559 −0 updated 08/28/26, 21:49

Commit message

The select field generated for "ctrl[transOrigPointerField]", for
example "tt_content.l18n_parent", offered all default language records
of the current page as translation parent. Two inconsistent states
could be created through the regular record editing form:

* A record already used as translation parent of another record in the
  same target language could be selected again. The resulting duplicate
  combination of language and translation parent is resolved
  differently by the Page module and the List module.
* A record with a deviating value in the "ctrl[type]" field could be
  selected. If that field is excluded from translation
  ('l10n_mode' => 'exclude', as with "tt_content.CType"), the
  translation inherits the type of its parent, so saving silently
  changed the record type and the whole editing form.

TcaEnrichment now registers TranslationParentItemsProcessor as
"itemsProcessors" for the automatically created transOrigPointerField
column. The processor removes both kinds of ineligible items while
keeping the parent currently assigned to the edited record, so existing
relations can still be saved.

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 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/42/95042/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/42/95042/1 && git cherry-pick FETCH_HEAD

Review

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

Issues 1

Files 6

Review log 23

  1. Eric Harrer uploaded patch set 1 07/31/26, 21:52

  2. core-ci voted on patch set 1 V +1 07/31/26, 21:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105761

  3. Eric Harrer marked it work in progress 08/28/26, 21:49