From 328bc96da775a2b1dda93a8cfab8b750a2f421f5 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 3 Oct 2011 02:47:07 +0000 Subject: [PATCH] Fix switching search modes by removing an unnecessary optimization --- chrome/content/zotero/xpcom/collectionTreeView.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index 008970335..e281dbbd6 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -2112,9 +2112,7 @@ Zotero.ItemGroup.prototype.getChildTags = function() { Zotero.ItemGroup.prototype.setSearch = function(searchText) { - if(searchText !== this.searchText) { - Zotero.ItemGroupCache.clear(); - } + Zotero.ItemGroupCache.clear(); this.searchText = searchText; }