Skip to content

Commit

Permalink
Added fix for saving of Instance.extra fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanwagenen committed Aug 18, 2013
1 parent 556550e commit 626f920
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 @@ -312,7 +312,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 626f920

Please sign in to comment.