Skip to content

Commit

Permalink
Restore auto-expanding of search matches except in My Publications
Browse files Browse the repository at this point in the history
Saved searches and the trash should automatically expand items to show
matching child items, but that was broken in d472752.
  • Loading branch information
dstillman committed Jul 27, 2017
1 parent 46531a4 commit 3637163
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chrome/content/zotero/xpcom/itemTreeView.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3637163

Please sign in to comment.