Commit 292e3733 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5storage force query to be a string

parent 5901753b
......@@ -170,6 +170,11 @@
};
ERP5Storage.prototype.allDocs = function (command, param, options) {
if (typeof options.query !== "string") {
options.query = (options.query ?
complex_queries.objectToSearchText(options.query) :
undefined);
}
return this._getSiteDocument()
.then(function (site_hal) {
return jIO.util.ajax({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment