Review 14.3 Merged

96022[BUGFIX] Use BackendUtility::getRecordTitle() in PageLinkMessageProvider

Benni Mack CR +2 V +2 Easy +2 −1 updated 09/23/26, 22:00

Commit message

Pages with doktype "link" and a link target containing a numeric
fragment (e.g. `t3://page?uid=1020#3727`) cause a
`RecordPropertyNotFoundException` in the backend layout module.

`PageLinkMessageProvider::generateLinkToContentElement()` resolves
the fragment as a content element uid and calls
`$record->get('header')` directly. In TYPO3 v14, the `Record`
class only exposes properties defined in the CType's TCA `types`
showitem. Custom CTypes that do not include `header` in their
showitem therefore throw an exception.

Replace the direct `get()` call with
`BackendUtility::getRecordTitle()`, which reads the TCA `label`
configuration and falls back gracefully when fields are unavailable.
This is consistent with how `getMessageForPageTypeLinkToRecord()`
already resolves record labels in the same class.

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. Benni Mack commented on patch set 1 09/23/26, 21:35

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

  3. Benni Mack voted on patch set 1 CR +2 V +2 09/23/26, 22:00

  4. Benni Mack merged patch set 2 09/23/26, 22:00