diff --git a/ayanova/src/views/cust-user.vue b/ayanova/src/views/cust-user.vue index e8c19ae6..85643e88 100644 --- a/ayanova/src/views/cust-user.vue +++ b/ayanova/src/views/cust-user.vue @@ -422,6 +422,7 @@ export default { if (this.$route.params.obj) { //yes, no need to fetch it this.obj = this.$route.params.obj; + this.optionsObj = this.$route.params.optionsObj; vm.formState.loading = false; //here we handle it immediately } else { await vm.getDataFromApi(vm.$route.params.recordid); //let getdata handle loading @@ -722,15 +723,16 @@ export default { if (res.data.id) { //POST - whole new object returned vm.obj = res.data; - + await vm.getUserOptionsDataFromApi(); //Change URL to new record //NOTE: will not cause a page re-render, almost nothing does unless forced with a KEY property or using router.GO() - + //this.optionsObj = this.$route.params.optionsObj; this.$router.push({ name: "cust-user", params: { recordid: res.data.id, - obj: res.data //Pass data object to new form + obj: res.data, //Pass data object to new form + optionsObj: vm.optionsObj } }); } else {