Review 14.3 Merged

97159[TASK] Use FlexForm schema in DataHandler relations

Benni Mack CR +2 V +2 Normal +105 −125 updated 10/25/26, 18:42

Commit message

When moving, deleting, discarding or publishing a record, DataHandler
resolved the data structure of flex fields itself and walked the raw
"sheets/ROOT/el" arrays to find inline children and MM relations.

These places now use the sheet field objects of
FlexFormSchemaFactory::getSchemaForRow(), the same way as for regular
TCA columns. RelationHandler is initialized with the sheet field, and
MM relations are detected via the relationship type of the field.

Publishing a record no longer fails if the data structure of a flex
field cannot be resolved, which is only the case for invalid TCA.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 810

  1. Benni Mack commented on patch set 1 10/25/26, 18:06

    Cherry Picked from branch main. The following files contain Git conflicts: * typo3/sysext/core/Classes/DataHandling/DataHandler.php * typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
  2. Benni Mack commented on patch set 2 10/25/26, 18:14

    Published edit on patch set 1.
  3. Benni Mack commented on patch set 3 10/25/26, 18:14

    Published edit on patch set 2.
  4. Benni Mack marked it ready for review 10/25/26, 18:15

  5. Benni Mack commented on patch set 4 10/25/26, 18:16

    Published edit on patch set 3.
  6. Benni Mack commented on patch set 5 10/25/26, 18:16

    Published edit on patch set 4.
  7. core-ci voted on patch set 1 V -1 10/25/26, 18:24 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112529

  8. core-ci voted on patch set 5 V +1 10/25/26, 18:32 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112534

  9. Benni Mack voted on patch set 5 CR +2 V +2 10/25/26, 18:42

  10. Benni Mack merged patch set 6 10/25/26, 18:42