Issue Bug Closed

#98181Undefined in array key in workspaceOL method

Armin Vieweg 08/19/22, 14:19 updated 07/09/24, 12:46

Description

When using EXT:container in TYPO3 11.5.14 with enabled (not live) workspaces, the content element properties does not show up, instead this exception occures:

> PHP Warning: Undefined array key “pid” in /www/htdocs/***/vendor/typo3/cms-backend/Classes/Utility/BackendUtility.php line 3432

This line is the following:

// When a moved record is found the "PID" value contains the newly moved location
// Whereas the _ORIG_pid field contains the PID of the live version
$wsAlt['_ORIG_pid'] = $row['pid'];

But, it can happen that the key “pid” is not set in $row.

When wrapping a isset($row['pid']) condition around, the exception does not appear anymore.

The workspaceOL method has been called by: /vendor/typo3/cms-backend/Classes/Form/FormDataProvider/AbstractItemProvider.php line 371

Reviews 3