From 626f920643466cc5b517e5f4cfb318ab660e7cf8 Mon Sep 17 00:00:00 2001 From: Kyle Van Wagenen Date: Sun, 18 Aug 2013 00:40:03 -0600 Subject: [PATCH] Added fix for saving of Instance.extra fields. --- lib/Instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Instance.js b/lib/Instance.js index c98f74f4..d0a95b7d 100755 --- a/lib/Instance.js +++ b/lib/Instance.js @@ -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]]; }