Review main Merged

97202[BUGFIX] Keep language of inline children listed by a second parent

Benni Mack CR +2 V +2 Hard +260 −1 updated 11/06/26, 21:59

Commit message

Since #103970, DataHandler aligns the language of inline children
with their parent and assumes that a child has exactly one parent.
A child table can however be used by inline relations of several
parent tables, each with its own "foreign_field". When such a parent
pointer is synchronized from the default language record, with
"l10n_mode" exclude or "allowLanguageSynchronization", every
translation of the child points to the parent of its default
language record.

Saving that parent with a new child, or creating it together with
the child in one DataHandler run, aligned the translated child to
the language of that parent. Translations silently became records
of the default language and lost their translation pointers.

A translated child is now left alone by a parent it is related to
through a synchronized parent pointer. It keeps the language of the
parent it belongs to.

Review

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

Issues 2

Files 12

Review log 67

  1. Benni Mack uploaded patch set 1 10/28/26, 16:13

  2. core-ci voted on patch set 1 V +1 10/28/26, 16:21 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112739

  3. Benni Mack wrote 10/30/26, 21:50

    Topic set to DataHandler
  4. Georg Ringer voted on patch set 1 CR +1 V +1 10/31/26, 12:19

  5. Simon Schaufelberger voted on patch set 1 CR +1 V +1 11/06/26, 00:58

  6. Benni Mack voted on patch set 1 CR +2 V +2 11/06/26, 21:59

  7. Benni Mack merged patch set 2 11/06/26, 21:59