From: dejan9393 Date: Fri, 19 Aug 2016 06:52:16 +0000 (+1000) Subject: Allow Int type custom fields to be converted to option value "value" X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4fa778a16f329b6355377370e340f172c1b74b47;p=civicrm-core.git Allow Int type custom fields to be converted to option value "value" --- diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 2cffc5dc91..08e783e06f 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -1990,7 +1990,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser { case 'Select': case 'Radio': case 'Autocomplete-Select': - if ($customFields[$customFieldID]['data_type'] == 'String') { + if ($customFields[$customFieldID]['data_type'] == 'String' || $customFields[$customFieldID]['data_type'] == 'Int') { $customOption = CRM_Core_BAO_CustomOption::getCustomOption($customFieldID, TRUE); foreach ($customOption as $customValue) { $val = CRM_Utils_Array::value('value', $customValue);