Roo/form/ComboBoxArray.js
[roojs1] / Roo / form / BasicForm.js
index 7588460..08ac4b4 100644 (file)
@@ -285,10 +285,10 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
             // eg. if a locking scenario exists..
             // we look for { errors : { needs_confirm : true }} in the response.
             if (
-                (typeof(action.result) != 'undefined') != 'undefined') &&
+                (typeof(action.result) != 'undefined')  &&
                 (typeof(action.result.errors) != 'undefined')  &&
                 (typeof(action.result.errors.needs_confirm) != 'undefined')
-          ){
+           ){
                 var _t = this;
                 Roo.MessageBox.confirm(
                     "Change requires confirmation",
@@ -501,6 +501,19 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
                 return;
             }
             var v = f.getValue();
+            if (f.inputType =='radio') {
+                if (typeof(ret[f.getName()]) == 'undefined') {
+                    ret[f.getName()] = ''; // empty..
+                }
+                
+                if (!f.el.dom.checked) {
+                    return;
+                    
+                }
+                v = f.el.dom.value;
+                
+            }
+            
             // not sure if this supported any more..
             if ((typeof(v) == 'object') && f.getRawValue) {
                 v = f.getRawValue() ; // dates..