This commit is contained in:
@@ -757,7 +757,16 @@ const FORM_CUSTOM_TEMPLATE_KEY = "Customer"; //<-- Should always be CoreBizObjec
|
||||
export default {
|
||||
async created() {
|
||||
let vm = this;
|
||||
|
||||
//Prevent returning back to the /0 NEW route after having just created a new record and instead return to the original new source page
|
||||
// console.log("cust-customer created params: ", vm.$route.params);
|
||||
// if (
|
||||
// vm.$route.params.recordid == null ||
|
||||
// (vm.$route.params.recordid == 0 && vm.$route.params.newRecord == null) //here recordid will technically be "0" if returned back to it from prior new
|
||||
// ) {
|
||||
// // navigate backwards
|
||||
// vm.$router.go(-1);
|
||||
// return;
|
||||
// }
|
||||
try {
|
||||
await initForm(vm);
|
||||
|
||||
@@ -1029,7 +1038,7 @@ export default {
|
||||
//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.$router.push({
|
||||
this.$router.replace({
|
||||
name: "customer-edit",
|
||||
params: {
|
||||
recordid: res.data.id,
|
||||
|
||||
Reference in New Issue
Block a user