Review main Ready for review

98173[TASK] Resolve the field configuration of a record in one place

Benni Mack CR 0 V 0 Hard +254 −65 updated 11/28/26, 22:40

Commit message

DataHandler honours the columnsOverrides of a record type in most
operations since #101435, but several persistence paths still read
the base column configuration for a concrete record. Fixes were
applied per caller (#95311 remapListedDBRecords, #108495
inlineLocalizeSynchronize), so each path resolved the record type
on its own, or not at all.

Undeleting or discarding a record and aligning the language of
inline children used the base configuration of an inline field.
With foreign_match_fields overridden by the record type, children
were neither restored, discarded nor aligned.

The new internal RecordFieldResolver returns the field of the sub
schema of the record type, falling back to the base field for
fields outside the showitem of the type, or for records without a
known type. DataHandler delegates its existing helpers to it and
uses it in undeleteRecordRelations(), discardRecordRelations(),
discardCsvReferencesToRecord(), versionPublishManyToManyRelations(),
getVersionizedIncomingFieldArray(),
compareFieldArrayWithCurrentAndUnset(),
insertUpdateDB_preprocessBasedOnFieldType() and
alignLanguageOfInlineChildren().

DataMapProcessor, the ReferenceIndex and the workspaces
DataHandlerHook follow separately.
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 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/73/98173/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/73/98173/1 && git cherry-pick FETCH_HEAD

Review

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

Relation chain 2

  1. 96740[BUGFIX] Respect columnsOverrides in inline localize sync Based on this change Benni Mack → main, 14.3 Normal +50 −1 CR 0 V 0 Merge conflict
  2. 98173 [TASK] Resolve the field configuration of a record in one place This change

Merge conflicts 38

Show 33 more changes Show less

Issues 3

Files 5

Review log 12

  1. Benni Mack uploaded patch set 1 11/28/26, 22:31

  2. core-ci voted on patch set 1 V +1 11/28/26, 22:40 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115909