Commit b7c2ebb0 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Prevent undefined array key in DataHandler

Resolves: #96069
Releases: master, 11.5
Change-Id: I2d883ebb7682ac7f402cdcb91b015ca74bdb72b4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72294

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent dd79d5b5
......@@ -1732,7 +1732,7 @@ class DataHandler implements LoggerAwareInterface
// Skip range validation, if the default value equals 0 and the input value is 0, "0" or an empty string.
// This is needed for timestamp date fields with ['range']['lower'] set.
$skipRangeValidation =
isset($tcaFieldConf['default'])
isset($tcaFieldConf['default'], $res['value'])
&& (int)$tcaFieldConf['default'] === 0
&& ($res['value'] === '' || $res['value'] === '0' || $res['value'] === 0);
......
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