Commit 4a951cba authored by Sven Franck's avatar Sven Franck

storage/fix: allow plain allDocs call

parent 2803cd39
......@@ -671,7 +671,7 @@ define([
// but we must set on spec directly, because query will only be
// assigned in a defined case
// TODO: not nice to hardquery for "allDocs" here, but... improve later
if (param.pointer === undefined && param.method === "allDocs") {
if (param.pointer === undefined && param.method === "allDocs" && spec.options !== undefined) {
spec.options.limit = param.options.limit;
spec.options.sort_on = param.options.sort_on;
spec.options.select_list = param.options.select_list || spec.default_items;
......
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