parent
69d35f97b0
commit
cf54a5da34
1 changed files with 3 additions and 1 deletions
|
@ -591,7 +591,9 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) {
|
||||||
this._itemDataLoaded = false;
|
this._itemDataLoaded = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(oldItemTypeID) this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID));
|
if (oldItemTypeID) {
|
||||||
|
this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID));
|
||||||
|
}
|
||||||
if (!this._changedPrimaryData) {
|
if (!this._changedPrimaryData) {
|
||||||
this._changedPrimaryData = {};
|
this._changedPrimaryData = {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue