commit dbf6bc0ee1fb216953be43176011f93627ca2208
parent 147f325e4026cfd2439682bac39a89d16d7378bc
Author: aurimasv <aurimas.dev@gmail.com>
Date: Sun, 17 Mar 2013 02:38:38 -0500
Don't attempt to mark changes when creating new item.
Diffstat:
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
@@ -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 = {};