I use Profile2 module to extend my user's profile.

Some of the fields of those profiles have custom validations created with field_validation module.

The function get_error_element of the class field_validation_validator generates the field name for form_set_error, but it fails when the field is inside a profile.

The error is displayed but the field is not marked as wrong.

Comments

tucho’s picture

Status: Active » Needs review
StatusFileSize
new878 bytes

I attach a patch that temporarily resolves this issue for profile2 module.

rclemings’s picture

Status: Needs review » Reviewed & tested by the community

Works perfectly.

  • g089h515r806 committed 3220d4e2 on 7.x-2.x authored by tucho
    Issue #2327431 by tucho, rclemings: Fields from Profile2 with errors
    
g089h515r806’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.