Hi!
Currently module does nothing if field is not filled but field marked as required (no message, no field highlighting).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Leksat’s picture

Attached patch fixes the bug.

Leksat’s picture

Title: Module doesn't respect "required" setting » Validation issues
Status: Active » Needs review
FileSize
6.77 KB

I found another validation errors and fix them:
1. Removed double field validation via #element_validate and hook_field_validate().
2. Removed validation of generic things like maxlength of select option, because Drupal do this job as well.
3. $errors variable is used instead of form_set_error().

Please review the patch.