mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Merge pull request #274 from aurimasv/newItem-fix
Unbreak adding new items
This commit is contained in:
commit
69d35f97b0
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