From 12fdfe7dc4fa901f22e31d855b048296816cf6f4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 8 Nov 2008 08:34:08 +0000 Subject: [PATCH] Fix problem changing item types --- chrome/content/zotero/xpcom/data/item.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 9a5971438..b56e361f8 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -419,9 +419,8 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) { } var target = newPrimary ? newPrimary : 2; - // Reset to contributor (creatorTypeID 2), which exists in all - this.setCreator(i, creators[i].firstName, - creators[i].lastName, target, creators[i].fieldMode); } + this.setCreator(i, creators[i].ref, target); + } } } }