This commit is contained in:
@@ -83,11 +83,14 @@ TODO: gzform - seems to be assuming that server is returning matching field name
|
||||
getErrorsForField finding matches, comparing serverErrorField:[WidgetCustom2] to form field ref:[customFields] gzform.js:91
|
||||
getErrorsForField finding matches, comparing serverErrorField:[WidgetNotes] to form field ref:[WidgetCustom2] gzform.js:91
|
||||
getErrorsForField finding matches, comparing serverErrorField:[WidgetCustom2] to form field ref:[WidgetCustom2] gzform.js:91
|
||||
- In a custom field the names match exactly
|
||||
- Other fields seem to have no Widget in them at the client end but do from the server end
|
||||
|
||||
|
||||
|
||||
TODO: Save button isn't enabling on changes in new record when it should. Enter in a value in the Name field of an empty record and move to a new field and it should immediately show the save button due to dirtiness?
|
||||
- Or is it becuase of broken rules that are not being displayed immediately? (new record should really show a bunch of broken rules right away as it has some empty and required fields)
|
||||
- Yes this seems to be it, also until all rules are unbroken save sb not enabled, but it appears that one more edit needs to be done after the last broken rule to unstick it or maybe it's the case mismatch issue above that will fix it
|
||||
|
||||
TODO: Make sure can easily make new record in Widget form before getting into deeper stuff or making any other object forms.
|
||||
|
||||
|
||||
@@ -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