Issue Bug Closed

#96443PHP warning when creating a new record with available TCEMAIN.preview configuration

Chris Müller 12/30/21, 16:47 updated 10/04/22, 14:17

Description

When creating a new record with an existing TCEMAIN.preview configuration the following warning is thrown:

PHP Warning: Trying to access array offset on value of type null in /var/www/html/public/typo3/sysext/backend/Classes/Controller/EditDocumentController.php line 860

The corresponding line is:

$value = $recordArray[$field];

$recordArray is null for a new record.

Reviews 2

History 24

  1. Gerrit Code Review pushed patch set 1 for main to change 72819 status New Under Review 12/30/21, 16:48

  2. Gerrit Code Review pushed patch set 1 for 11.5 to change 72839 01/03/22, 11:47

  3. Chris Müller commented and changed status Under Review Resolved done 0 % 100 % 01/03/22, 11:51

    Applied in changeset commit:ee6bd966f4f4f65d54942140ee16595872a5edb5.

  4. Benni Mack changed status Resolved Closed 10/04/22, 14:17