This commit is contained in:
2019-04-08 20:15:38 +00:00
parent 12471f3090
commit c36fb3dd17
2 changed files with 7 additions and 1 deletions

View File

@@ -265,6 +265,11 @@ export default {
throw "DEV ERROR gzvalidate::ServerErrors -> serverError seems to be missing from form's vue data object"; throw "DEV ERROR gzvalidate::ServerErrors -> serverError seems to be missing from form's vue data object";
} }
//make sure errorBoxMessage is defined on data
if (!v.$_.has(v, "errorBoxMessage")) {
throw "DEV ERROR gzvalidate::ServerErrors -> errorBoxMessage seems to be missing from form's vue data object";
}
//ensure the error returned is in an expected format to catch coding errors at the server end //ensure the error returned is in an expected format to catch coding errors at the server end
if (!v.$_.isEmpty(v.serverError)) { if (!v.$_.isEmpty(v.serverError)) {
//Make sure there is an error code if there is an error collection //Make sure there is an error code if there is an error collection

View File

@@ -89,7 +89,8 @@ export default {
"ErrorAPI2207", "ErrorAPI2207",
"ErrorAPI2208", "ErrorAPI2208",
"ErrorAPI2209", "ErrorAPI2209",
"ErrorServerUnresponsive" "ErrorServerUnresponsive",
"ErrorUserNotAuthenticated"
], ],
decimalValidate(required) { decimalValidate(required) {
return { required: required, decimal: [2, this.formats.decimalSeparator] }; return { required: required, decimal: [2, this.formats.decimalSeparator] };