From 7aefa6d9ee8d5d22a0c4bd1bcef1b068bb3d7bda Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Mon, 27 Oct 2025 11:53:16 +0100 Subject: [PATCH] Use current collection when adding items (#5598) --- chrome/content/zotero/zoteroPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index fb05fadd9a..1f425e12d2 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4378,7 +4378,7 @@ var ZoteroPane = new function () { } // Only allow targets within the current library for now // TODO: Come back to this once we support copying items between libraries from the Add to Collection menu - let id = await this.newCollection(); + let id = await this.newCollection(this.getSelectedCollection()?.key); if (!id) { return; }