Unbreak adding new items. Broken by dbf6bc0ee1.

This commit is contained in:
Aurimas Vinckevicius 2013-03-19 01:05:53 -05:00
parent 67bccfc9fe
commit cc93a0c7b8

View File

@ -590,8 +590,8 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) {
if (loadIn) {
this._itemDataLoaded = false;
}
else if(oldItemTypeID) {
this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID));
else {
if(oldItemTypeID) this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID));
if (!this._changedPrimaryData) {
this._changedPrimaryData = {};
}