Commit c3a9fd58 authored by Sven Franck's avatar Sven Franck

app: add allow_new and force_new to skip queries and allow blank forms

parent f667f985
......@@ -6188,13 +6188,14 @@
pass.state.query = {};
}
}
// TODO: get ALL RECORDS matching query (and make this if disappear ...)
if ((!app.storage_dict.property_dict.skip_total_records &&
pass.config_dict.skip_total_records !== true) &&
((pass.grant || pass.url_dict.mode === "new") &&
(pass.state && pass.state.query._id === undefined) &&
(pass.config_dict.initial_query || pass.create === false))
(pass.config_dict.initial_query || pass.create === false) &&
!pass.config_dict.property_dict.force_new)
) {
// reset limit from sampling [0,1] and store query
pass.state.query.limit = [];
......@@ -6256,7 +6257,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");
......
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