From a9937740c5bbd2f1bd8d756cfd2f3fdf638fea4a 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 f06525a097..dc813dab96 100644 --- a/chrome/content/zotero/selectItemsDialog.js +++ b/chrome/content/zotero/selectItemsDialog.js @@ -93,12 +93,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);