Issue Bug Closed

#98682Type Error in Wizard AddController

Anja Leichsenring 10/21/22, 08:03 updated 12/06/22, 21:52

Description

Cannot assign null to property TYPO3\CMS\Backend\Controller\Wizard\AddController::$returnEditConf of type string

in /var/www/html/typo3/sysext/backend/Classes/Controller/Wizard/AddController.php line 201
$parsedBody = $request->getParsedBody();
$queryParams = $request->getQueryParams();
// Init GPvars:
$this->P = $parsedBody[‘P’] ?? $queryParams[‘P’] ?? [];
*$this->returnEditConf = $parsedBody[‘returnEditConf’] ?? $queryParams[‘returnEditConf’] ?? null;*
// Get this record
$record = BackendUtility::getRecord($this->P[‘table’], $this->P[‘uid’]);
// Set table:
$this->table = $this->P[‘params’][‘table’];

How to reproduce: use any AddRecord wizard, e.g. filemount in BEUser or styleguide -> elements_group -> group_db_1

Reviews 2

History 46

  1. Gerrit Code Review pushed patch set 1 for main to change 76209 status New Under Review 10/21/22, 08:09

  2. Anja Leichsenring changed subject Type Error in AddWizard Type Error in Wizard AddController 10/21/22, 08:10

  3. Anja Leichsenring changed description 10/21/22, 08:10

  4. Gerrit Code Review pushed patch set 1 for 11.5 to change 76175 10/21/22, 08:33

  5. Anja Leichsenring commented and changed status Under Review Resolved done 0 % 100 % 10/21/22, 08:35

    Applied in changeset commit:c89231d5e9a1b21376c2b914bebb5034f64c2abf.

  6. Benni Mack changed status Resolved Closed 12/06/22, 21:52