From 637acbe69337f71c56df21b4e47f676be8ad3fee Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 31 Jan 2022 04:31:53 -0500 Subject: [PATCH] Fix incorrect isEditable() test in Item::moveToLibrary() --- chrome/content/zotero/xpcom/data/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 435c3d5d77..602bcaa3e0 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -4598,7 +4598,7 @@ Zotero.Item.prototype.clone = function (libraryID, options = {}) { * @return {Zotero.Item} - New item */ Zotero.Item.prototype.moveToLibrary = async function (libraryID, onSkippedAttachment) { - if (!this.isEditable) { + if (!this.isEditable()) { throw new Error("Can't move item in read-only library"); } var library = Zotero.Libraries.get(libraryID);