Last report implemented throughout
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user