From: monishdeb Date: Mon, 27 Jul 2015 15:58:04 +0000 (+0530) Subject: minor fix for custom Select Field X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=348f4a0db26018199111c3f1936d266bb5e0ddea;p=civicrm-core.git minor fix for custom Select Field --- diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index ac4e7c9231..e76a8a2dd5 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -1209,7 +1209,15 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { break; case 'Select': - $display = CRM_Utils_Array::value($value, $option); + if (is_array($value)) { + $display = NULL; + foreach ($value as $data) { + $display .= $display ? ', ' . $option[$data] : $option[$data]; + } + } + else { + $display = CRM_Utils_Array::value($value, $option); + } break; case 'CheckBox':