Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.0
-
Fix Version/s: 4.3.0
-
Component/s: CiviCRM Profile
-
Labels:None
Description
CRM_Profilemockup_Page_ProfileEditor::getModels() returns a list of fields that are available for use in a profile form. Each item includes a "civiFieldType". When creating a UFField, the "civiFieldType" is copied to "UFField.field_type".
Currently, the values produced by "civiFieldType" are not correct – which will produce incorrect "UFField.field_type" data. Specifically, it associates all fields with "Individual". In reality, some fields (like "first_name" and "last_name") should be "Individual", but others (like "do_not_sms") should be "Contact".