Issue Bug Closed

#105986Fix PHP undefined array key "ctrl" in NewRecordController

Garvin Hicking 01/24/25, 13:01 updated 08/12/25, 14:36

Description

When having a TCA specification as in typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_registryentry.php which is specifically tested to not require a “ctrl” key in TCA (see TYPO3\CMS\Extbase\Tests\Functional\Persistence\Generic\Storage\Typo3DbQueryParserTest::tcaWithoutCtrlCreatesAValidSQLStatement) using such a TCA will lead to a PHP error in the NewRecordController:

PHP Warning: Undefined array key "ctrl" in /var/www/html/typo3-core/typo3/sysext/backend/Classes/Controller/NewRecordController.php line 599

Reviews 3

History 36

  1. Garvin Hicking changed description 01/24/25, 13:05

  2. Gerrit Code Review pushed patch set 1 for main to change 87875 status New Under Review 01/24/25, 13:09

  3. Gerrit Code Review pushed patch set 1 for 12.4 to change 87876 01/24/25, 13:10

  4. Gerrit Code Review pushed patch set 1 for 13.4 to change 87877 01/24/25, 13:10

  5. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % 01/25/25, 08:05

    Applied in changeset commit:cae183517c0278f33119076a80fcae606c824df5.

  6. Benni Mack changed status Resolved Closed 08/12/25, 14:36