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:
parent
fd5c48ac51
commit
69c27cd8a7
|
@ -343,6 +343,7 @@ Zotero.CollectionTreeRow.prototype.getSearchObject = Zotero.Promise.coroutine(fu
|
||||||
|
|
||||||
// Create the outer (filter) search
|
// Create the outer (filter) search
|
||||||
var s2 = new Zotero.Search();
|
var s2 = new Zotero.Search();
|
||||||
|
s2.addCondition('libraryID', 'is', this.ref.libraryID);
|
||||||
|
|
||||||
if (this.isTrash()) {
|
if (this.isTrash()) {
|
||||||
s2.addCondition('deleted', 'true');
|
s2.addCondition('deleted', 'true');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user