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.
This commit is contained in:
Dan Stillman 2017-09-01 17:44:18 -04:00
parent fd5c48ac51
commit 69c27cd8a7

View File

@ -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');