[TYPO3-core] RFC: Bugfix #9659: TCEmain wrongly tests required input-type fields

Oliver Hader oliver at typo3.org
Fri Oct 31 12:15:10 CET 2008


FYI: Committed to SVN:
* TYPO3_4-1 (rev. 4394)
* TYPO3_4-2 (rev. 4392)
* Trunk (rev. 4392)

olly


Francois Suter schrieb:
> Hi,
> 
>> Problem:
>> 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.
> 
> Here is an updated patch, taking into account Oliver's and Steffen's
> request about using false instead of 0.
-- 
Oliver Hader
TYPO3 4.3 Release Manager


More information about the TYPO3-team-core mailing list