Merge pull request #274 from aurimasv/newItem-fix
Unbreak adding new items
This commit is contained in:
commit
69d35f97b0
|
@ -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 = {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user