[html-formfu] force_errors(1) doesn't make has_errors() return true

Ronald J Kimball rkimball+formfu at pangeamedia.com
Tue Sep 2 16:45:04 BST 2008


I'm using the Custom Error Messages example from the Cookbook to do some 
extra validation:

http://search.cpan.org/~cfranks/HTML-FormFu-0.03003/lib/HTML/FormFu/Manual/Cookbook.pod#Custom_error_messages

If I call force_errors(1) on the constraint, call process() on the form, 
and then redisplay the form, the error message is shown, as expected.

However, I was surprised to find that calling has_errors() on the form 
still returns false, even though the form does have an error now.  Is 
this the intended behavior?

thanks,
Ronald



More information about the HTML-FormFu mailing list