This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user