Actions
Bug #94603
closedint-validation in TCA does not accept empty value, when lower-range is defined
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2021-07-21
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
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".
Updated by Marcus Schwemer about 3 years ago
Reason are these two commits:
- https://github.com/TYPO3/TYPO3.CMS/commit/16a239e750898b1a5659a273bcc4de83471bca44
- https://github.com/TYPO3/TYPO3.CMS/commit/adce6dbe8b305c71c447929bc14e5c87b4ad6954
If I revert both, it works as before.
HTH
Updated by Christian Kuhn about 3 years ago
- Is duplicate of Bug #94621: startime/endtime are forced to "today" after saving added
Updated by Christian Kuhn about 3 years ago
Confirmed. Thanks for report. We got another report as duplicate with a bit more explanation and scenario description. I'll close here and we'll follow-up in #94621.
Updated by Oliver Hader about 3 years ago
- Category set to DataHandler aka TCEmain
Actions