Don't attempt to mark changes when creating new item.

This commit is contained in:
aurimasv 2013-03-17 02:38:38 -05:00
parent 147f325e40
commit dbf6bc0ee1

View file

@ -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 = {};