From b8d89b9d602848b98f72bf74873c8cb81986a3d1 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 6 Nov 2010 05:16:48 +0000 Subject: [PATCH] fix incorrect creatorType --- chrome/content/zotero/xpcom/translation/item_local.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/item_local.js b/chrome/content/zotero/xpcom/translation/item_local.js index b2eaf8285e..ef13cdfc06 100644 --- a/chrome/content/zotero/xpcom/translation/item_local.js +++ b/chrome/content/zotero/xpcom/translation/item_local.js @@ -369,6 +369,7 @@ Zotero.Translate.ItemSaver.prototype = { var creator = item.creators[i]; // try to assign correct creator type + var creatorTypeID = 1; if(creator.creatorType) { try { var creatorTypeID = Zotero.CreatorTypes.getID(creator.creatorType); @@ -376,9 +377,6 @@ Zotero.Translate.ItemSaver.prototype = { Zotero.debug("Translate: Invalid creator type "+creator.creatorType+" for creator index "+j, 2); } } - if(!creatorTypeID) { - var creatorTypeID = 1; - } // Single-field mode if (creator.fieldMode && creator.fieldMode == 1) {