Commit 5dfeca3b authored by Sven Franck's avatar Sven Franck

add check for "alldocs" when querying for single item

parent b69f46dd
......@@ -670,7 +670,8 @@ define([
// if we have a pointer, we can disregard method & options,
// but we must set on spec directly, because query will only be
// assigned in a defined case
if (param.pointer === undefined) {
// TODO: not nice to hardquery for "allDocs" here, but... improve later
if (param.pointer === undefined && param.method === "allDocs") {
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