diff --git a/chrome/content/zotero/bindings/zoterosearch.xml b/chrome/content/zotero/bindings/zoterosearch.xml index f93b8076c0..f84f724c15 100644 --- a/chrome/content/zotero/bindings/zoterosearch.xml +++ b/chrome/content/zotero/bindings/zoterosearch.xml @@ -232,7 +232,7 @@ diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js index a563f7e679..271b03b147 100644 --- a/chrome/content/zotero/xpcom/data/dataObject.js +++ b/chrome/content/zotero/xpcom/data/dataObject.js @@ -445,7 +445,6 @@ Zotero.DataObject.prototype.editCheck = function () { */ Zotero.DataObject.prototype.save = Zotero.Promise.coroutine(function* (options) { var env = { - arguments: arguments, transactionOptions: null, options: options || {} }; diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js index f5516bf0f5..c964e8c6c2 100644 --- a/chrome/content/zotero/xpcom/search.js +++ b/chrome/content/zotero/xpcom/search.js @@ -181,17 +181,8 @@ Zotero.Search.prototype._initSave = Zotero.Promise.coroutine(function* (env) { return Zotero.Search._super.prototype._initSave.apply(this, arguments); }); -/* - * Save the search to the DB and return a savedSearchID - * - * If there are gaps in the searchConditionIDs, |fixGaps| must be true - * and the caller must dispose of the search or reload the condition ids, - * which may change after the save. - * - * For new searches, name must be set called before saving - */ Zotero.Search.prototype._saveData = Zotero.Promise.coroutine(function* (env) { - var fixGaps = env.arguments[0]; + var fixGaps = env.options.fixGaps; var isNew = env.isNew; var searchID = env.id = this._id = this.id ? this.id : yield Zotero.ID.get('savedSearches');