diff --git a/ayanova/src/views/test-inventory-widget-edit.vue b/ayanova/src/views/test-inventory-widget-edit.vue index a105d0a5..6639c841 100644 --- a/ayanova/src/views/test-inventory-widget-edit.vue +++ b/ayanova/src/views/test-inventory-widget-edit.vue @@ -500,14 +500,14 @@ export default { //Logic for detecting if a post or put: if id then it was a post, if no id then it was a put if (res.data.id) { //Handle "post" of new record (CREATE) - vm.obj = res.data; - window.$gz.form.setFormState({ - vm: vm, - dirty: false, - readOnly: res.readOnly ? true : false - }); + // vm.obj = res.data; + // window.$gz.form.setFormState({ + // vm: vm, + // dirty: false, + // readOnly: res.readOnly ? true : false + // }); - //change url to new record in history and actually navigate but with the actual id at the end instead of zero: + //change url to new record in history and trigger navigate but with the id at the end instead of zero: vm.$router.replace( vm.$route.fullPath.slice(0, -1) + res.data.id );