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

index 46d338d..e9b5edb 100644 (file)
@@ -337,6 +337,10 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
                 }
             }
         }
+        Roo.each(this.childForms || [], function (f) {
+            f.markInvalid(errors);
+        });
+        
         return this;
     },
 
@@ -387,12 +391,11 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
                 }
             }
         }
-        if (this.childForms) {
-            Roo.each(this.childForms, function (f) {
-                f.setValues(values);
-            });
-        }
-        
+         
+        Roo.each(this.childForms || [], function (f) {
+            f.setValues(values);
+        });
+                
         return this;
     },