This commit is contained in:
@@ -419,6 +419,7 @@ export default {
|
|||||||
);
|
);
|
||||||
formSettings.saved.dataTable.listViewId = -1;
|
formSettings.saved.dataTable.listViewId = -1;
|
||||||
formSettings.temp.cachedListView = null;
|
formSettings.temp.cachedListView = null;
|
||||||
|
formSettings.temp.page = 1;
|
||||||
window.$gz.form.setFormSettings(vm.formKey, formSettings);
|
window.$gz.form.setFormSettings(vm.formKey, formSettings);
|
||||||
next();
|
next();
|
||||||
} else {
|
} else {
|
||||||
@@ -717,6 +718,7 @@ export default {
|
|||||||
//Update the formSettings now that it's saved
|
//Update the formSettings now that it's saved
|
||||||
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
||||||
formSettings.temp.cachedListView = lvSave.listView;
|
formSettings.temp.cachedListView = lvSave.listView;
|
||||||
|
formSettings.temp.page = 1;
|
||||||
formSettings.saved.dataTable.unsavedListView = null;
|
formSettings.saved.dataTable.unsavedListView = null;
|
||||||
formSettings.saved.dataTable.listViewId =
|
formSettings.saved.dataTable.listViewId =
|
||||||
res.data.id || vm.listViewId; //if res.data.id then a post, if null then a put and vm.listviewId has the id
|
res.data.id || vm.listViewId; //if res.data.id then a post, if null then a put and vm.listviewId has the id
|
||||||
@@ -785,6 +787,7 @@ export default {
|
|||||||
//set it to the default list view so the caller doesn't try to load the non-existant deleted view it was just working with
|
//set it to the default list view so the caller doesn't try to load the non-existant deleted view it was just working with
|
||||||
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
||||||
formSettings.temp.cachedListView = null;
|
formSettings.temp.cachedListView = null;
|
||||||
|
formSettings.temp.page = 1;
|
||||||
formSettings.saved.dataTable.unsavedListView = null;
|
formSettings.saved.dataTable.unsavedListView = null;
|
||||||
formSettings.saved.dataTable.listViewId = 0;
|
formSettings.saved.dataTable.listViewId = 0;
|
||||||
window.$gz.form.setFormSettings(vm.formKey, formSettings);
|
window.$gz.form.setFormSettings(vm.formKey, formSettings);
|
||||||
@@ -821,6 +824,7 @@ export default {
|
|||||||
//switch to the new record in the formsettings
|
//switch to the new record in the formsettings
|
||||||
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
|
||||||
formSettings.temp.cachedListView = null;
|
formSettings.temp.cachedListView = null;
|
||||||
|
formSettings.temp.page = 1;
|
||||||
formSettings.saved.dataTable.unsavedListView = null;
|
formSettings.saved.dataTable.unsavedListView = null;
|
||||||
formSettings.saved.dataTable.listViewId = res.data.id;
|
formSettings.saved.dataTable.listViewId = res.data.id;
|
||||||
window.$gz.form.setFormSettings(vm.formKey, formSettings);
|
window.$gz.form.setFormSettings(vm.formKey, formSettings);
|
||||||
|
|||||||
Reference in New Issue
Block a user