Review 14.3 Merged

96783[BUGFIX] Align language of inline children with their parent

Benni Mack CR +2 V +2 Expert +1059 −0 updated 10/18/26, 14:21

Commit message

Inline children (type "inline" and type "file") belong to exactly one
parent and must have the same language. This was not ensured:

* New children submitted together with their parent kept the
  language sent by the backend form, which is the language of the
  parent when the form was opened, not the one chosen before saving.
* New children added to an existing translated parent got the
  default language when no language was submitted for them.
* Existing children kept their language when the language of their
  parent was changed. Localizing such a parent afterward duplicated
  the children, or failed with "Child record was not processed"
  when language synchronization is enabled.

After all relations are resolved, DataHandler now aligns all children
of each record that was created, whose language was changed, or that
got new inline children submitted. Existing siblings of a new child
are aligned as well. The language stored for the parent is used, and
nested children follow their aligned parent independent of the order
of the data map. A child is aligned to a language at most once per
run, so invalid cyclic relations cannot loop endlessly. A child
aligned to the default language or to "all languages" also gets its
translation pointers reset.

Like the parent pointer and sorting DataHandler already writes to
inline children, the language is written without checking access to
the child table, its page or its language field, live as well as in
a workspace. In a workspace, only workspace versions of the children
are written.

Not covered: inline relations stored in an MM table (children are
not owned by one parent), changing the language of a child directly,
and existing inconsistent records until their parent is saved as
described above.

Review

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

Issues 8

Files 37

Show 17 more files

Review log 34

  1. Benni Mack commented on patch set 1 10/17/26, 12:28

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 10/17/26, 12:37 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111455

  3. Benni Mack voted on patch set 1 CR +2 V +2 10/18/26, 14:21

  4. Benni Mack merged patch set 2 10/18/26, 14:21