From: yashodha Date: Wed, 7 Oct 2015 06:48:01 +0000 (+0530) Subject: make sure it works for non-boolean options as well X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6343ab39bdf500e0a4e93ddd6d0873141d5c0eee;p=civicrm-core.git make sure it works for non-boolean options as well --- diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index 438c4634dc..e73f82ac10 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -1179,6 +1179,9 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { if ($data_type == 'Boolean') { $options = array('No', 'Yes'); } + else { + $options = $option; + } if (is_array($value)) { $display = NULL; foreach ($value as $data) {