Review main Merged

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

Steffen Mächtel CR +2 V +2 Easy +2 −1 updated 09/23/26, 21:35

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
    • Georg Ringer +1
    • Sebastian Fischer +1
  • Verified V +2 Done
    • Benni Mack +2
    • Georg Ringer +1
    • core-ci +1 CI

Issues 1

Files 1

Review log 67

  1. Steffen Mächtel uploaded patch set 1 08/20/26, 16:25

  2. core-ci voted on patch set 1 V +1 08/20/26, 16:32 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106919

  3. Sebastian Fischer voted on patch set 1 CR +1 08/21/26, 08:47

  4. Benni Mack voted on patch set 1 CR +1 V +1 09/23/26, 21:01

  5. Georg Ringer voted on patch set 1 CR +1 V +1 09/23/26, 21:18

  6. Benni Mack voted on patch set 1 CR +2 V +2 09/23/26, 21:35

  7. Benni Mack merged patch set 2 09/23/26, 21:35