This commit is contained in:
2021-01-23 00:53:18 +00:00
parent 83fcf759ee
commit f1698fe8b8
2 changed files with 6 additions and 2 deletions

View File

@@ -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;
}
}

View File

@@ -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