Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Leksat commentedAttached patch fixes the bug.
Comment #2
Leksat CreditAttribution: 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.