Commit 4095222e authored by Romain Courteaud's avatar Romain Courteaud

Fix manual query trigger condition.

parent 60012c69
......@@ -54,10 +54,10 @@
// Can substorage handle the queries if needed?
try {
if (((options.query !== undefined) && (!substorage.hasCapacity("query"))) ||
((options.sort_on !== undefined) && (!substorage.hasCapacity("sort"))) ||
((options.select_list !== undefined) && (!substorage.hasCapacity("select"))) ||
((options.limit !== undefined) && (!substorage.hasCapacity("limit")))) {
if (((options.query === undefined) || (substorage.hasCapacity("query"))) &&
((options.sort_on === undefined) || (substorage.hasCapacity("sort"))) &&
((options.select_list === undefined) || (substorage.hasCapacity("select"))) &&
((options.limit === undefined) || (substorage.hasCapacity("limit")))) {
sub_options.query = options.query;
sub_options.sort_on = options.sort_on;
sub_options.select_list = options.select_list;
......
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