Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.0, 2.2.1, 2.2.2
-
Fix Version/s: 3.0
-
Component/s: CiviCRM Profile
-
Labels:None
Description
1. Create a Profile with Used For = Profile, Search Results
Include several Individual Fields (First and Last Name, Gender, Birth Date)
Make First Name a Searchable field and Included in Selector (Results Column = true)
Also include Participant > Participant Role field in the profile.
If you then navigate to civicrm/profile?reset=1&gid=N (the search interface for this profile) - you get two misleading errors:
- This Profile includes fields for more than one record type. Profile is not configured for the selected action.
- No fields in this Profile have been configured as searchable. Ask the site administrator to check the Profile setup.
The actual "error" should be:
"Profile search, view and edit are not supported for Profiles which include fields for more than one record type."
-------------------
2. If we detect that a Profile has more than one record type (e.g. Contact + Participant, Contact + Contrib, etc.) - we should disable (grey out) the following Profile field options:
- "Searchable?"
- "Results Column?"
NOTE: I like the idea of disabling this fields rather than hiding them - since the elements of that form stay consistent and the user isn't puzzled as to why those fields are "missing". Even better would be to ALSO include an alternative "description" below each of these: "This feature is not available for Profiles which contain fields for more than one record type."