From dbf6bc0ee1fb216953be43176011f93627ca2208 Mon Sep 17 00:00:00 2001 From: aurimasv Date: Sun, 17 Mar 2013 02:38:38 -0500 Subject: [PATCH] Don't attempt to mark changes when creating new item. --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 2abc9cdf7a..a0307e74ef 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -590,7 +590,7 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) { if (loadIn) { this._itemDataLoaded = false; } - else { + else if(oldItemTypeID) { this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID)); if (!this._changedPrimaryData) { this._changedPrimaryData = {};