It was first reported on an issue related to field_collection module: #1684262: Unique validation triggered during field collection editing even if entity is unchanged.

Problem is that Profile2 edit form does not have any information on current profile id.
Additionally profile2_path module can override path of edit form.
Here's first attempt to fix this issue.

CommentFileSizeAuthor
field_validation_profile2.patch1.22 KBzambrey

Comments

prezaeis’s picture

im trying to use this module with profile2 fields, however i cant see the settings for it in the fields, am i missing something?
also tried this patch, didnt work

zambrey’s picture

Validation settings for all fields are stored on Admin -> Structure -> Field Validation
Without this patch when you set up unique validation for one on the fields on Profile entity, you will get validation error every time you save a profile.

g089h515r806’s picture

The patch commited.

prezaeis’s picture

thats the thing, i dont see that link in admin

zambrey’s picture

Status: Needs review » Fixed

It's fixed then. Thanks.
@prezaeis: make sure you have field_validation_ui module enabled.
You can create support request if problem still exists.

zambrey’s picture

Oh you did: #1857692: validation tab does not appear
I'm glad you have this resolved.

Status: Fixed » Closed (fixed)

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