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