Commit d7c4e8ca authored by Tristan Cavelier's avatar Tristan Cavelier

bad query options management fixed

parent e6e9d5b4
......@@ -415,8 +415,7 @@
"/[^/]+$"
);
if (options.query === undefined && options.sort_on === undefined &&
options.select_list === undefined &&
options.include_docs === undefined) {
options.select_list === undefined) {
rows = [];
for (i in this._database) {
if (this._database.hasOwnProperty(i)) {
......@@ -425,7 +424,7 @@
row = { value: {} };
row.id = i.split('/').slice(-1)[0];
if (options.include_docs) {
row.doc = JSON.parse(this._storage.getItem(i));
row.doc = this._storage.getItem(i);
}
rows.push(row);
}
......
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