From 3247391914e75f3a77a61661e13729ef9c908dac Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 17 Mar 2020 12:01:34 -0400 Subject: [PATCH] Fix removal of creators when changing to item type without creators This shouldn't actually be used currently, since only notes and attachments lack creators and it shouldn't be possible to change regular items into notes or attachments. --- chrome/content/zotero/xpcom/data/item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 72eaeafdd0..9a47e59973 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -499,10 +499,11 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) { let creators = this.getCreators(); if (creators.length) { let removeAll = !Zotero.CreatorTypes.itemTypeHasCreators(itemTypeID); - for (let i=0; i