www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit df6426af2e428784d0fb5600aa4e1b75fa15f6fd
parent 387e9e4fc048693427b5f44628248508f8be4837
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 21 Sep 2012 19:49:27 -0400

Fixes #168, Properly adjust index when skipping empty creators

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_item.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -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); } },