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

Francois Suter fsuter at cobweb.ch
Tue Oct 28 15:40:13 CET 2008


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.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug9659-2.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081028/4b79c24c/attachment.txt 


More information about the TYPO3-team-core mailing list