Review 14.3 Merged

96700[BUGFIX] Do not share doc header components between module templates

Oli Bartsch CR +2 V +2 Easy +28 −5 updated 10/15/26, 06:15

Commit message

Each ModuleTemplate retrieves its DocHeaderComponent from the
container, where it, its ButtonBar and its MenuRegistry were shared
services. All module templates created in the same process therefore
wrote into the same button bar and menu registry.

A second module template within one request, as well as functional
tests dispatching a module more than once, rendered the buttons of
the previous one. Menus with different identifiers even made the
doc header throw, as it only allows a single menu.

The stateful components are now declared as non-shared services, so
every module template gets its own instances. The workaround in
RecordListControllerTest is removed accordingly.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 5

Review log 34

  1. Oli Bartsch commented on patch set 1 10/14/26, 20:45

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

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 10/15/26, 06:15

  4. Oli Bartsch merged patch set 2 10/15/26, 06:15