On 19/08/07, Moritz Onken <[EMAIL PROTECTED]> 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 _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu