Review 14.3 Merged

94935[BUGFIX] Respect language overlay type in Extbase

Benni Mack CR +2 V +2 Normal +116 −19 updated 07/24/26, 16:33

Commit message

The language overlay type is part of the language aspect which in
turn is populated based on the site language configuration.

When retrieving a root aggregate object from Extbase persistence or
when fetching related objects of an aggregate root, this resolved
overlay type and its fallback chain are now respected. This ensures
that translation behavior of Extbase is consistent with the regular
translation behavior of pages and content in TYPO3. Most notably,
sites configured with "fallbackType: strict" no longer receive
untranslated records or untranslated child objects from Extbase.

While the overlay type is now taken from the resolved language
aspect, the content language used for the overlay is still derived
from the actually fetched record where needed: When a translated
record is fetched directly by its uid, or when queries do not respect
the system language, records keep being overlaid to their own
language. Identity lookups in free mode ("fallbackType: free") map to
mixed overlay semantics, consistent with the handling of related
objects in the DataMapper.

Since frontend sub-requests of functional tests currently leak their
language context into the test scope, persistence assertions running
after such sub-requests explicitly reset the language aspect for now.

Review

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

Issues 3

Files 6

Review log 34

  1. Benni Mack commented on patch set 1 07/24/26, 16:22

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 07/24/26, 16:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105346

  3. Benni Mack voted on patch set 1 CR +2 V +2 07/24/26, 16:33

  4. Benni Mack merged patch set 2 07/24/26, 16:33