Commit 2ecdea44 authored by Sven Franck's avatar Sven Franck

TUTORIAL-FIX: allow force_new on queries

parent d24cdaee
......@@ -5933,7 +5933,8 @@
if (!app.storage_dict.property_dict.skip_total_records &&
(pass.grant || (pass.url_dict.mode === "new" || pass.purge) &&
(pass.state && pass.state.query._id === undefined) &&
pass.config_dict.initial_query)
pass.config_dict.initial_query) &&
!pass.config_dict.property_dict.force_new
) {
// reset limit from sampling [0,1] and store query
pass.state.query.limit = [];
......@@ -5994,7 +5995,7 @@
}
// get items/item
if (pass.grant &&
if (pass.grant && !pass.config_dict.property_dict.force_new &&
(pass.url_dict.mode !== "new" || !pass.config_dict.initial_query)
) {
app.util.loader("", "status_dict.loading_set");
......@@ -6115,7 +6116,8 @@
}
// set empty "record" to allow generation of empty form
if (pass.url_dict.mode === "new") {
if (pass.url_dict.mode === "new" ||
(quirk_dict.allow_new || quirk_dict.force_new)) {
pointer_results = {"data": {"total_rows": 1, "rows": [{"doc": {}}]}};
}
......
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