rleland 2003/10/30 22:26:26
Modified: conf/share validator-rules.xml
Log:
Bug 24202
Add required check for single checkbox,
Bug report/patch by Saul Q Yuan
Revision Changes Path
1.45 +7 -7 jakarta-struts/conf/share/validator-rules.xml
Index: validator-rules.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/conf/share/validator-rules.xml,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- validator-rules.xml 31 Oct 2003 06:09:13 -0000 1.44
+++ validator-rules.xml 31 Oct 2003 06:26:26 -0000 1.45
@@ -86,10 +86,10 @@
if (si >= 0) {
value = field.options[si].value;
}
- } else if (field.type == "checkbox") {
- if (field.checked) {
- value = field.value;
- }
+ } else if (field.type == 'checkbox') {
+ if (field.checked) {
+ value = field.value;
+ }
} else {
value = field.value;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]