Actions
Bug #19514
closedTCEmain wrongly tests required input-type fields
Start date:
2008-10-28
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
When an input-type field is marked as "required" in the TCA, TCEmain tests it simply with
if (!$value)
This is insufficient, since in the case of an "int" field, for example, 0 is a perfectly valid value, but it will fail the "required" test.
The solution is to introduce a finer testing:
if (!isset($value) || $value === '')
(issue imported from #M9659)
Updated by Oliver Hader about 16 years ago
Committed to SVN:
- TYPO3_4-1 (rev. 4394)
- TYPO3_4-2 (rev. 4392)
- Trunk (rev. 4392)
Actions