From 90589606c2f6f3935c09d3ad65edf94121478e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 19 Apr 2023 11:25:29 +0300 Subject: [PATCH] Fix classic citation dialog collection tree not working (regression b213b8f1) Report https://forums.zotero.org/discussion/104460/zotero-6-0-24-classic-add-citation-dialog-doesnt-show-collections-content --- chrome/content/zotero/selectItemsDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/selectItemsDialog.js b/chrome/content/zotero/selectItemsDialog.js index 806f92a03d..f8b3215367 100644 --- a/chrome/content/zotero/selectItemsDialog.js +++ b/chrome/content/zotero/selectItemsDialog.js @@ -91,12 +91,12 @@ function doUnload() } var onCollectionSelected = async function () { + var collectionTreeRow = collectionsView.getRow(collectionsView.selection.focused); if (!collectionsView.selection.count) return; // Collection not changed if (itemsView && itemsView.collectionTreeRow && itemsView.collectionTreeRow.id == collectionTreeRow.id) { return; } - var collectionTreeRow = collectionsView.getRow(collectionsView.selection.focused); collectionTreeRow.setSearch(''); Zotero.Prefs.set('lastViewedFolder', collectionTreeRow.id);