yogiben / meteor-autoform-modals

Adds modals to insert/update/delete Meteor collections
63 stars 41 forks source link

Using more then one modal update autoform on same page throw exception. #80

Closed marekhattas closed 8 years ago

marekhattas commented 8 years ago

I am using two modals update autoform on same page.. ex. {{#afModal class="btn btn-primary" collection="Posts" formId="postsUpateForm" operation="update" doc=_id}} Update post {{/afModal}}

{{#afModal class="btn btn-primary" collection="Books" formId="booksUpateForm" operation="update" doc=_id}} Update books {{/afModal}}

When i clicked on "Update post" ->close and then i click on "Update books" this error shows up Exception in template helper: Error: Invalid field name: XXX -- XXX is first field name from Posts collection schema. I think is it some problem with duplicate ids?

marekhattas commented 8 years ago

Sorry,,, my fault,,, everything is ok