Last report implemented throughout

This commit is contained in:
2021-09-09 22:36:00 +00:00
parent 3fb25fce47
commit 130a6d5f03
104 changed files with 634 additions and 2169 deletions

View File

@@ -1304,12 +1304,13 @@ function saveFormSettings(vm) {
//preserve anything not directly related to datatable
//for now it's just the last report so nothing fancy here
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
console.log("datatable-saveformsettings fetched is:", formSettings);
if (formSettings != null && formSettings.saved != null) {
if (formSettings.saved.lastReport != null) {
newFormSettings.lastReport = formSettings.saved.lastReport;
newFormSettings.saved.lastReport = formSettings.saved.lastReport;
}
}
window.$gz.form.setFormSettings(vm.formKey, newFormSettings);
}