Review 14.3 Merged

97015[BUGFIX] Detect mount points as subpages in menus

Benni Mack CR +2 V +2 Normal +88 −3 updated 10/22/26, 16:45

Commit message

A page whose children are all mount points in overlay mode was
rendered as having no subpages: the IFSUB item states stayed
inactive and the submenu was dropped entirely. Adding a single
ordinary sibling next to the mount points made both work again.

isSubMenu() fetches the children of all pages of the current level
in one query and assigns them to their parent by comparing pid to
the parent uid. A mount point in overlay mode has been replaced by
the mounted page at that point, and that record lives elsewhere in
the page tree, so it is assigned to no parent at all.
prepareMenuItems() then reuses the cached negative decision and
skips the submenu query, which is why the children vanish as well.

PageRepository now keeps the parent a mount point was found below
in _MOUNT_POINT_ORIGINAL_PAGE_PID, and isSubMenu() prefers it over
the pid. The single query per menu level is kept.

Review

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

Issues 2

Files 5

Review log 46

  1. Benni Mack commented on patch set 1 10/22/26, 15:57

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V -1 10/22/26, 16:08 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112143

  3. Benni Mack commented on patch set 2 V -1 10/22/26, 16:29

    Published edit on patch set 1.
  4. core-ci voted on patch set 2 V +1 10/22/26, 16:45 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112150

  5. Benni Mack voted on patch set 2 CR +2 V +2 10/22/26, 16:45

  6. Benni Mack merged patch set 3 10/22/26, 16:45