Roo/form/BasicForm.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Nov 2013 06:02:03 +0000 (14:02 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Nov 2013 06:02:03 +0000 (14:02 +0800)
Roo/form/BasicForm.js

index 8c1dae7..6e574e8 100644 (file)
@@ -506,14 +506,14 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
                     ret[f.getName()] = ''; // empty..
                 }
                 
-                if (f.el.dom.checked) {
-                    v = f.el.dom.value;
+                if (!f.el.dom.checked) {
+                    return;
+                    
                 }
-                
+                v = f.el.dom.value;
                 
             }
             
-            var v = f.getValue();
             // not sure if this supported any more..
             if ((typeof(v) == 'object') && f.getRawValue) {
                 v = f.getRawValue() ; // dates..