make sure it works for non-boolean options as well
authoryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 7 Oct 2015 06:48:01 +0000 (12:18 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 7 Oct 2015 06:48:01 +0000 (12:18 +0530)
CRM/Core/BAO/CustomField.php

index 438c4634dc41df3a9648b5c1671361d4a6fee8b9..e73f82ac102b0ec87fce195771bb996c1abe6c00 100644 (file)
@@ -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) {