projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c67e959
)
Allow Int type custom fields to be converted to option value "value"
author
dejan9393
<take_it_2_ova_time@hotmail.com>
Fri, 19 Aug 2016 06:52:16 +0000
(16:52 +1000)
committer
GitHub
<noreply@github.com>
Fri, 19 Aug 2016 06:52:16 +0000
(16:52 +1000)
CRM/Contact/Import/Parser/Contact.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/Import/Parser/Contact.php
b/CRM/Contact/Import/Parser/Contact.php
index 2cffc5dc911fcb7c7bff5c4a7b22f8628de1e777..08e783e06f02d5f6b3e9ecbe41a7729132c97c59 100644
(file)
--- 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);