Fix error modifying existing saved search with more than 1 condition

Closes #1056, which wasn't actually the problem
This commit is contained in:
Dan Stillman 2016-07-07 07:55:15 -04:00
parent 18cf6088b0
commit c1f7a188e2
3 changed files with 4 additions and 2 deletions

View file

@ -221,6 +221,7 @@ describe("Zotero.Search", function() {
let s = new Zotero.Search();
s.name = "Test";
s.addCondition('joinMode', 'any');
s.addCondition('title', 'isNot', 'foo');
let json = s.toJSON();
json.name = "Test 2";
json.conditions = [