Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.4
-
Fix Version/s: 4.4.5
-
Component/s: Core CiviCRM
-
Labels:None
Description
Users are "supposed to be" able to import data to a multiple choice custom field using either the option value OR option label. (See documentation from book below). This is no longer working properly. When import cell contains option label, no error is reported BUT the label is saved in the DB rather than the value (which is not valid). This is definitely a regression. The code still "knows" that the label is valid since it does a lookup and doesn't report an error. However, it saves the "wrong" data to the DB column.
=== from book.civicrm.org / Importing Data ====
"If you are importing data into multi-choice (e.g. check-box or radio button) custom fields, your data source can use either the label (what's visible to the user in the CiviCRM front end) or the value (what's actually stored in the database for that choice). CiviCRM will recognise it and import it appropriately. When importing into multi-choice core data fields, you can specify only the value(s) in your data source, not the label."
=====================================
— original description —
Imported some test contact records to Demo 4.4.4 containing data in "Constituent Information - Marital Status" field. Records imported ok, but no Status displayed under Constituent Information tab.
Imported records are found using Search Builder (" Contact Type - 'Individual' ...AND...Marital Status IS NOT NULL" ) but not found if searching for specific Status (e.g. Single, Married etc). ("No matches found for: Contact Type - 'Individual' ...AND...Marital Status = Single")
Import file attached.