Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.0
-
Fix Version/s: 4.4.0
-
Component/s: CiviCRM Profile
-
Labels:None
Description
Looks like this is caused by a change to the values returned by CRM_Contact_BAO_Contact::importableFields. That method returns gender, individual_prefix, individual_suffix in 4.3. In 4.4 it returns the DB column names (gender_id, prefix_id, suffix_id).
I fixed Create and Edit by updating special handling in CRM_Core_BAO_UFGroup::buildProfile
However, View is displaying the ID value (e.g. '3') instead of the label (e.g. Ms.) and I haven't figured out what needs to change. getValues() and formatFields() have special handling for these properties, but changing them to reflect the change in fieldName didn't fix the view problem.
NOTE: I was not able to figure out why these fieldname values were changed / where the actual change was mode in the codebase ??? AND since importableFields is used in lots of places, do we need to investigate other breakages??