Review main Abandoned

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

Steffen Mächtel CR 0 V 0 Easy +2 −1 updated 08/20/26, 16:12

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 0
  • Verified V 0

Issues 1

Files 1

Review log 2

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

  2. Steffen Mächtel abandoned the change 08/20/26, 16:12