Review 14.3 Merged

93821[BUGFIX] Avoid broken redirect in new record wizard

Christian Kuhn CR +2 V +2 Easy +28 −1 updated 04/23/26, 10:03

Commit message

When only one record type in a single group is available for
creation, NewRecordController shortcuts and redirects straight
to the creation URL. For tables with TCA sub-types, the item
carries a 'types' sub-array instead of a 'url', raising
"Undefined array key url" and a subsequent TypeError.

The patch guards the redirect with a check on 'url'. Items
without a 'url' fall through and render the wizard so the
editor can pick a sub-type.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 34

  1. Christian Kuhn uploaded patch set 1 04/23/26, 09:37

  2. core-ci voted on patch set 1 V +1 04/23/26, 09:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/101015

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 04/23/26, 10:03

  4. Christian Kuhn merged patch set 2 04/23/26, 10:03