Commit 637fb942 authored by Christian Kuhn's avatar Christian Kuhn Committed by Oliver Bartsch
Browse files

[BUGFIX] Another DataHandler PHP 8 fix

A rather obvious TCA access scenario.

Resolves: #94611
Releases: master
Change-Id: Ie4ac8c7d1978e89de28076e0d036db1930c51149

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Jochen's avatarJochen <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Jochen's avatarJochen <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
parent b8d7cddb
......@@ -4836,7 +4836,7 @@ class DataHandler implements LoggerAwareInterface
// Clear cache before deleting the record, else the correct page cannot be identified by clear_cache
[$parentUid] = BackendUtility::getTSCpid($table, $uid, '');
$this->registerRecordIdForPageCacheClearing($table, $uid, $parentUid);
$deleteField = $GLOBALS['TCA'][$table]['ctrl']['delete'];
$deleteField = $GLOBALS['TCA'][$table]['ctrl']['delete'] ?? false;
$databaseErrorMessage = '';
if ($recordWorkspaceId > 0) {
// If this is a workspace record, use discard
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment