Review main Abandoned

95476[WIP][BUGFIX] Inherit parent language for new inline children

Eric Harrer CR 0 V 0 Hard +405 −0 updated 10/23/26, 05:09

Commit message

A new inline or file child created in a record that lives in a
language other than the default could end up in the default
language.

FormEngine prepares the language of such a child and sends it back
as a regular form field. When that field is not part of the form,
nothing is submitted and DataHandler falls back to the first
language the editor is allowed to use, in practice the default
language. The field is missing when page TSconfig disables it
(e.g. TCEFORM.tt_content.sys_language_uid.disabled = 1), when the
showitem definition of the child leaves it out, and when a data
map is built without FormEngine at all.

Children of a record in a "free mode" language therefore ended up
in the default language, where consumers that respect the language
of a relation, Extbase among them, no longer find them.

DataHandler now derives the language of a new inline or file child
from the record referencing it, if the incoming data carries no
language of its own. process_datamap() looks the parent up in the
current data map, so nested children inherit as well, and reads an
already persisted parent from the database.

Only the implicit fallback changes. Giving a child a different
language on purpose stays valid, only records created in the same
request are considered, existing children are never re-languaged,
and no additional database write is issued.

Review

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

Issues 3

Files 10

Review log 34

  1. Eric Harrer uploaded patch set 1 08/28/26, 21:29

  2. Eric Harrer marked it work in progress 08/28/26, 21:30

  3. core-ci voted on patch set 1 V +1 08/28/26, 21:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107330

  4. Benni Mack abandoned the change 10/23/26, 05:09