www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 69c27cd8a7dd0dda989ee3aecc3fd76a11841fe4
parent fd5c48ac513fb5481997327e335e21f3adbf2697
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  1 Sep 2017 17:44:18 -0400

Fix potential failure with full-text phrase search

Phrase searches weren't scoped to the current library, so they could
return unloaded items in other libraries and cause the search to fail.

Diffstat:
Mchrome/content/zotero/xpcom/collectionTreeRow.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/collectionTreeRow.js b/chrome/content/zotero/xpcom/collectionTreeRow.js @@ -343,6 +343,7 @@ Zotero.CollectionTreeRow.prototype.getSearchObject = Zotero.Promise.coroutine(fu // Create the outer (filter) search var s2 = new Zotero.Search(); + s2.addCondition('libraryID', 'is', this.ref.libraryID); if (this.isTrash()) { s2.addCondition('deleted', 'true');