This commit is contained in:
2019-11-22 00:03:16 +00:00
parent a904674d6c
commit ffed8b16b3
2 changed files with 9 additions and 3 deletions

View File

@@ -87,9 +87,12 @@ function getErrorsForField(vm, ref) {
if (!o.target) {
return false;
}
//server error fields are capitalized
console.log("getErrorsForField finding matches, comparing serverErrorField:["+o.target + "] to form field ref:["+ref+"]");
return o.target.toLowerCase() == ref;
//server error fields are capitalized
//client field names are generally lower case except for custom fields
//so we need to normalize them all to lower case to match
//they will always differ by more than case so this is fine
console.log("getErrorsForField finding matches, comparing serverErrorField:["+o.target.toLowerCase() + "] to form field ref:["+ref.toLowerCase()+"]");
return o.target.toLowerCase() == ref.toLowerCase();
});
}
return ret;