Re: QuickForm Example ITDynamic_example.php does not work
| From: | Alexey Borzov | Date: | Thu, 17 Apr 2003 18:23:14 +0000 |
| Subject: | Re: QuickForm Example ITDynamic_example.php does not work | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4930@lists.php.net to get a copy of this message | ||
Greetings!
Carsten Bleek wrote:
Hi, When submitting the ITDynamic_example.php, the validation throws an error becaus of a failed check for the required "iradYesNo" yes/no radio button. Can someone confirm that this is a bug in the Quickform package?Yes, this is indeed a bug. I traced it back to _validateGroup(), but cannot fix it right away. :[ If you do an addRule(..., 'required') on checkboxes or radios group it tries to check whether all checkboxes or radios are checked, which is counterintuitive, to say the least. Bertrand, how about setting changing the 'howmany' semantics from '$howmany value(s) are valid' to 'no invalid values exist and there is atleast $howmany valid value(s)' and setting 'howmany'=1 when doing addRule() on group element?