Closed (fixed)
Project:
Clientside Validation
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 17:40 UTC
Updated:
30 Mar 2012 at 13:40 UTC
When a CCK field uses "Check boxes/radio buttons" and it is not required and multiple, validation fails because checkboxes is marked to have at least one value defined.
I attach a patch to fix this. The changed code adds a flag with 'required' value to indicate the min. value. If it is not required, zero value is allowed.
| Comment | File | Size | Author |
|---|---|---|---|
| clientside_validation-cck_checkboxes_validation.patch | 2.87 KB | sjovanig |
Comments
Comment #1
jelle_sThanks for the catch! committed to 6.x-1.x-dev, along with some other usages I found that your patch didn't cover.