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

Moreno Feltscher moreno.feltscher at gmail.com
Tue Oct 28 16:02:03 CET 2008


On Tue, Oct 28, 2008 at 3:40 PM, Francois Suter <fsuter at cobweb.ch> wrote:
> 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.
>

+1 on reading.


More information about the TYPO3-team-core mailing list