mirror of
https://github.com/zotero/zotero.git
synced 2026-09-19 00:01:31 +00:00
Fixes #168, Properly adjust index when skipping empty creators
This commit is contained in:
parent
387e9e4fc0
commit
df6426af2e
1 changed files with 2 additions and 1 deletions
|
|
@ -401,6 +401,7 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
},
|
||||
|
||||
"_saveCreators":function(item, newItem) {
|
||||
var creatorIndex = 0;
|
||||
for(var i=0; i<item.creators.length; i++) {
|
||||
var creator = item.creators[i];
|
||||
|
||||
|
|
@ -451,7 +452,7 @@ Zotero.Translate.ItemSaver.prototype = {
|
|||
var creatorID = creator.save();
|
||||
}
|
||||
|
||||
newItem.setCreator(i, creator, creatorTypeID);
|
||||
newItem.setCreator(creatorIndex++, creator, creatorTypeID);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue