2009/2/27 Christian Lackas <christ...@lackas.net>: > So, MinLength does not apply to the empty string? Why is that? > I would have expected that FormFu complains here also.
The Required constraint is the only one that demands the value is entered. MinLength really means "if it's filled-in, then it must be at least X chars long". Otherwise, there would be no way to add a constraint to an optional field. > The user might have updated other fields (such as his mail address, not > shown in my example here, though). > I found that simply re-adding the value from the database (s.a.) is the > quickest solution. Ok. I'll still add the 'ignore_if_not_true' idea to the Model-DBIC to-do list, as I think it's a good idea. Cheers, Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu