Issue Bug Closed

#94603int-validation in TCA does not accept empty value, when lower-range is defined

Tina Westner 07/21/21, 07:00 updated 07/23/21, 11:10

Description

This bug came with TYPO3 10.4.18, have not checked in V11 yet.

When in tca a validation like below is given, an empty value is not accepted anymore:

'config' => [
   'eval' => 'int',
   'range' => [
       'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))
   ],
]

before: an empty field has been accepted and a value, which matches the lower-definition
now: if you leave the field empty, it will be prefilled with the minimum value (in this case is “now”)

Can be seen in all powermail-tables for example – if you save a form, in the form-record and the pages-record the starttime and endtime-fields are set with “now”.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.