Review 13.4 Merged

95809[BUGFIX] Skip foreign table query for transOrigPointerField on default language

JAKOTA Design Group GmbH CR +2 V +2 Easy +13 −1 updated 11/06/26, 16:52

Commit message

The transOrigPointerField (e.g. l18n_parent) is configured with a
displayCond that hides it for records in the default language
(sys_language_uid <= 0). However, TcaSelectItems runs before
EvaluateDisplayConditions and unconditionally calls
addItemsFromForeignTable(), which queries all records on the same
PID. On pages with large numbers of content records this causes
significant performance degradation.

Skip the addItemsFromForeignTable() call when the field being
processed is the transOrigPointerField and the current record
belongs to the default or "all languages" language, as the field
will never be displayed in that case.

Review

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

Issues 1

Files 1

Review log 34

  1. JAKOTA Design Group GmbH commented on patch set 1 09/14/26, 10:34

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

  3. Benni Mack voted on patch set 1 CR +2 V +2 11/06/26, 16:52

  4. Benni Mack merged patch set 2 11/06/26, 16:52