Skip to content

Commit 9e7baf4

Browse files
committed
Merge pull request #830 from abecks/master
Fix validation for autoForm's with no type set
2 parents 8dbfa7b + bbfb534 commit 9e7baf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formTypes/normal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ AutoForm.addFormType('normal', {
5959
// Get SimpleSchema
6060
var ss = AutoForm.getFormSchema(this.form.id);
6161
// Validate
62-
return AutoForm._validateFormDoc(this.formDoc, false, this.form.id, ss, this.form);
62+
return AutoForm._validateFormDoc(this.formDoc.insertDoc, false, this.form.id, ss, this.form);
6363
}
6464
});

0 commit comments

Comments
 (0)