Saved search fixes

- Fix saved search editing
- Refresh items list on search change
- Generate correct conditions array for search JSON
This commit is contained in:
Dan Stillman 2016-03-26 02:59:54 -04:00
parent 62f3177d36
commit b7b246e741
10 changed files with 157 additions and 20 deletions

View file

@ -382,6 +382,10 @@ function createUnsavedDataObject(objectType, params = {}) {
break;
}
if (objectType == 'search') {
obj.addCondition('title', 'contains', 'test');
}
Zotero.Utilities.assignProps(obj, params, allowedParams);
return obj;