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.
This commit is contained in:
Dan Stillman 2017-07-26 05:33:24 -04:00
parent 46531a4c69
commit 36371630b5

View file

@ -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;
}