PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm2 » Bug #9097

option to execute rules even when element values are empty

Details

Request #9097option to execute rules even when element values are empty
Submitted2006-10-19 19:56 UTC
Frommarcio at corp dot grupos dot com dot br
Assignedavb
StatusClosed
PackageHTML_QuickForm2
PHP Version4.4.4
OSfreebsd
Roadmaps0.2.0

Comments

[2006-10-19 19:56 UTC] marcio at corp dot grupos dot com dot br

Description:
------------
Class Rules needs and attribute (validateIfEmptyValue, by default false) that says to validate() execute that rule even when the element has an empty value. Now it is hardcoded for required and uploadedfile, in addRule(). These rules should set validateIfEmptyValue attribute to true.

I need ( :) ) that when i created a rule called requiredIfCompare, where an elemento should be required only if some comparison of other elements results true.

It could be in QF 3, next version ;~