Fix dropping of empty creators
This commit is contained in:
parent
a9bc55738a
commit
1050fc32b3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue