From 36371630b56b2ce79b6587b57d9f64b42ffc6537 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 26 Jul 2017 05:33:24 -0400 Subject: [PATCH] Restore auto-expanding of search matches except in My Publications Saved searches and the trash should automatically expand items to show matching child items, but that was broken in d47275210. --- chrome/content/zotero/xpcom/itemTreeView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index 72813e68c3..af31e418dd 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -116,7 +116,10 @@ Zotero.ItemTreeView.prototype.setTree = async function (treebox) { return; } - await this.refresh(true); + // Don't expand to show search matches in My Publications + var skipExpandMatchParents = this.collectionTreeRow.isPublications(); + + await this.refresh(skipExpandMatchParents); if (!this._treebox.treeBody) { return; }