Skip to content

Commit

Permalink
Merge pull request #312 from kvanwagenen/master
Browse files Browse the repository at this point in the history
Fix for saving of Instance.extra fields.
  • Loading branch information
dresende committed Aug 26, 2013
2 parents 2a5abb8 + 626f920 commit 1996236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function Instance(Model, opts) {
}
}

for (i = 0; i < opts.extra_info.id; i++) {
for (i = 0; i < opts.extra_info.id.length; i++) {
conditions[opts.extra_info.id_prop[i]] = opts.extra_info.id[i];
conditions[opts.extra_info.assoc_prop[i]] = opts.data[opts.id[i]];
}
Expand Down

0 comments on commit 1996236

Please sign in to comment.