Roo/form/BasicForm.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 12 Oct 2010 09:18:21 +0000 (17:18 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 12 Oct 2010 09:18:21 +0000 (17:18 +0800)
Roo/form/BasicForm.js

index 1c1fb31..bf13438 100644 (file)
@@ -455,7 +455,11 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
             if (!f.getName()) {
                 return;
             }
-            ret[f.getName()] = f.getRawValue  ? f.getRawValue() : f.getValue();
+            var v = f.getValue();
+            if ((typeof(v) == 'object') && f.getRawValue) {
+                v = f.getRawValue() ; // dates..
+            }
+            ret[f.getName()] = v;
         });
         
         return ret;