Skip to content

Commit

Permalink
[BUGFIX] Another DataHandler PHP 8 fix
Browse files Browse the repository at this point in the history
A rather obvious TCA access scenario.

Resolves: #94611
Releases: master
Change-Id: Ie4ac8c7d1978e89de28076e0d036db1930c51149
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70021
Tested-by: core-ci <typo3@b13.com>
Tested-by: Jochen <rothjochen@gmail.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Jochen <rothjochen@gmail.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
lolli42 authored and o-ba committed Jul 22, 2021
1 parent b8d7cdd commit 637fb94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/DataHandling/DataHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4836,7 +4836,7 @@ public function deleteRecord($table, $uid, $noRecordCheck = false, $forceHardDel
// 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
Expand Down

0 comments on commit 637fb94

Please sign in to comment.