Roo/form/BasicForm.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 09:15:37 +0000 (17:15 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 09:15:37 +0000 (17:15 +0800)
Roo/form/BasicForm.js

index 06ddf74..6416755 100644 (file)
@@ -378,6 +378,13 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
     getValues : function(asString){
         if (this.childForms) {
             Roo.each(this.childForms, function (f) {
+                if (f.allFields) {
+                    Roo.each(f.allFields, function (e) {
+                        if (e.name && e.getValue && this.findField(e.name)) {
+                            this.findField(e.name).setValue(e.getValue());
+                        }
+                    });
+                
                 f.setValues(values);
             }, this);
         }