Commit 2340f71c authored by Tristan Cavelier's avatar Tristan Cavelier

erp5storage compatible with queries

parent 900c5ce3
......@@ -301,9 +301,16 @@ jIO.addStorageType("erp5", function (spec, my) {
* @param {string} method The ERP5 request method
*/
priv.genericCommand = function (command, method) {
var option = command.cloneOption();
if (complex_queries !== undefined &&
method === 'allDocs' &&
option.query) {
option.query =
complex_queries.QueryFactory.create(option.query || "").serialized();
}
erp5.genericRequest(
command.cloneDoc(),
command.cloneOption(),
option,
method
).always(function (err, response) {
if (err) {
......
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