Roo/form/BasicForm.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 29 Jul 2010 06:48:20 +0000 (14:48 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 29 Jul 2010 06:48:20 +0000 (14:48 +0800)
Roo/form/BasicForm.js

index d7488c5..0d22583 100644 (file)
@@ -416,13 +416,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
         if (this.childForms) {
             // copy values from the child forms
             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());
-                        }
-                    }, this);
-                }
+                this.setValues(f.getValues());
             }, this);
         }