Review 14.3 Merged

97625[BUGFIX] Do not load all tree items when opening a record

Benni Mack CR +2 V +2 Hard +436 −78 updated 11/13/26, 21:09

Commit message

Since empty relation fields are hidden in FormEngine, TcaSelectTreeItems
and TcaCategory resolved the full item list of their foreign table on
every form load, including the complete record of each item, just to
find out whether the field has any selectable item. The tree itself
is fetched afterwards via AJAX anyway. With several tree fields
pointing to a large table such as "pages", opening a record exhausted
the PHP memory limit.

The full item list is now built only for the AJAX request again. When
the form is opened, a limited query checks whether at least one
selectable record exists, respecting "keepItems", "removeItems",
workspace overlays and user restrictions. The result is handed over
to TcaColumnsRemoveEmptyRelations, while the configured items of the
field stay untouched.

Review

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

Issues 1

Files 6

Review log 34

  1. Benni Mack uploaded patch set 1 11/13/26, 18:50

  2. core-ci voted on patch set 1 V +1 11/13/26, 19:57 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114371

  3. Benni Mack voted on patch set 1 CR +2 V +2 11/13/26, 21:09

  4. Benni Mack merged patch set 2 11/13/26, 21:09