Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review

95099[BUGFIX] Prevent exception if translated page doktype mismatches parent

Bastien Lutz CR 0 V 0 Normal +41 −28 updated 11/19/26, 10:03

Commit message

Consider the following scenario: having a page of type link and a
translation with any other doktype.
This currently throws an exception in the layout module.
To prevent this, only try to generate a link infobox if the translated
page also has the doktype link.
Additionally, if a missmatch between those translated page doktypes is
detected, an error box with a hint is displayed.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 3
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/99/95099/3 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/99/95099/3 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 2

Review log 47

  1. Bastien Lutz uploaded patch set 1 08/04/26, 10:17

  2. core-ci voted on patch set 1 V +1 08/04/26, 10:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105936

  3. Simon Schaufelberger updated the commit message in patch set 2 V +1 08/04/26, 10:50

  4. core-ci voted on patch set 2 V +1 08/04/26, 10:58 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105941

  5. Bastien Lutz updated the commit message in patch set 3 V +1 08/05/26, 07:03

  6. core-ci voted on patch set 3 V +1 08/05/26, 07:11 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105966

  7. Oli Bartsch commented on patch set 3 11/19/26, 10:03

    Hey Basti, https://review.typo3.org/c/Packages/TYPO3.CMS/+/97838 fixes the v14 crash for in both the frontend and the Layout module, independent of whether v15 locks the doktype for translations (https://review.typo3.org/c/Packages/TYPO3.CMS/+/95038). It makes doktype-dependent decisions use the record that is actually rendered (the overlay), which is what PageRepository::getPageOverlay() already does for every other field. And it covers the frontend too, while does not show an error for differing doktypes, since that can be intentional (e.g. a translation that is an external link).