mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Unbreak adding new items. Broken by dbf6bc0ee1.
This commit is contained in:
parent
67bccfc9fe
commit
cc93a0c7b8
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue