Hi!
Currently module does nothing if field is not filled but field marked as required (no message, no field highlighting).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | cck_phone-validation-1659068-2.patch | 6.77 KB | leksat |
| #1 | cck_phone-required_validation-1659068-1.patch | 648 bytes | leksat |
Comments
Comment #1
leksat commentedAttached patch fixes the bug.
Comment #2
leksat commentedI 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.