commit 1050fc32b3d8eb0d6cfb25092b47780ec2de5c6f
parent a9bc55738a925abfc043a4d403bd1402b41f4c95
Author: Simon Kornblith <simon@simonster.com>
Date: Sun, 11 Mar 2012 16:03:00 -0400
Fix dropping of empty creators
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -1115,7 +1115,7 @@ Zotero.Utilities = {
} else if(field === "creators") {
// normalize creators
var n = val.length;
- var newCreators = newItem.creators = new Array(n);
+ var newCreators = newItem.creators = [];
for(var j=0; j<n; j++) {
var creator = val[j];
@@ -1148,7 +1148,7 @@ Zotero.Utilities = {
}
if(!newCreator.creatorType) newCreator.creatorType = "author";
- newCreators[j] = newCreator;
+ newCreators.push(newCreator);
}
} else if(field === "tags") {
// normalize tags