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

don't set include_docs on gadget updates if storage.force_fields is set

parent 1fa6c450
......@@ -5429,10 +5429,19 @@
}
if (pass.create === false) {
// make sure include_docs is set, because at this point we want data!
pass.state.query.include_docs = true;
// make sure include_docs is set, to fetch data. DON'T if force_fields
// is set, because then we fetch by columns only (not whole docs)
if (storage === undefined ||
(storage && storage.force_fields === undefined)) {
pass.state.query.include_docs = true;
}
pass.state.query.limit = pass.store_limit;
} else {
// generate a new query object, if force_fields is set
// generate an array of columns to select here
if (pass.fields && storage && storage.force_fields) {
}
pass.state.query = app.generateQueryObject(
pass.config.initial_query,
pass.type,
......
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