diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index d425665cc..dfe0cd6c8 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -1464,13 +1464,14 @@ Zotero.Utilities = { } // separate name variables - var authorID = Zotero.CreatorTypes.getPrimaryIDForType(item.itemType); + var authorID = Zotero.CreatorTypes.getPrimaryIDForType(itemTypeID); + var authorFieldName = Zotero.CreatorTypes.getName(authorID); var creators = item.creators; if(creators) { for(var i=0, n=creators.length; i