[html-formfu] Inflator::DateTime fix
Carl Franks
fireartist at gmail.com
Mon Aug 20 10:23:33 GMT 2007
On 19/08/07, Moritz Onken <onken at houseofdesign.de> wrote:
> Hi,
>
> I wrote a test an a patch for the Inflator::DateTime module.
> Now it won't fail validation if the date field is emtpy.
Thanks!
I made just a couple of slight changes.
I changed
return unless $value;
to
return unless defined $value && $value ne "";
as the first would allow "0" through.
I also changed the test file to check submitted_and_valid() as the
intent's a little bit clearer.
Cheers,
Carl
More information about the HTML-FormFu
mailing list