From f1698fe8b83095b2b235bc2ea1e1352c4c3af9b5 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 23 Jan 2021 00:53:18 +0000 Subject: [PATCH] --- ayanova/src/api/gzform.js | 7 ++++++- ayanova/src/views/inv-part-warehouse.vue | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index 44dcb1fe..b0a34d1e 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -632,6 +632,7 @@ export default { let apiErrorCode = parseInt(vm.formState.serverError.code); //Not all server errors mean the form is invalid, exceptions here let formValid = false; + /* These errors are not the user's fault and no changes to the form are required so they may be temporary and user should be able to retry save @@ -694,10 +695,13 @@ export default { .translateStringWithMultipleKeys(ve.message) .then(result => { transMessage = result; + console.log("Got Translation"); }); fldErr += ' - "' + transMessage + '"'; + ret.push(fldErr); + } else { + ret.push(fldErr); } - ret.push(fldErr); }); //Update the form status @@ -705,6 +709,7 @@ export default { vm: vm, valid: false }); + console.log("done - Returning"); return ret; } } diff --git a/ayanova/src/views/inv-part-warehouse.vue b/ayanova/src/views/inv-part-warehouse.vue index d5ab2fdf..2ef9f610 100644 --- a/ayanova/src/views/inv-part-warehouse.vue +++ b/ayanova/src/views/inv-part-warehouse.vue @@ -378,7 +378,6 @@ export default { let res = await window.$gz.api.remove(url); if (res.error) { vm.formState.serverError = res.error; - debugger; window.$gz.form.setErrorBoxErrors(vm); } else { //workaround to prevent warning about leaving dirty record