From: yashodha Date: Tue, 6 Oct 2015 13:29:46 +0000 (+0530) Subject: CRM-17299: Yes or No custom fields not displayed correctly in table X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=12894e6c918e9aaf199476dd8d26366d2775dcd3;p=civicrm-core.git CRM-17299: Yes or No custom fields not displayed correctly in table ---------------------------------------- * CRM-17299: "Yes or No" custom fields not displayed correctly in table https://issues.civicrm.org/jira/browse/CRM-17299 --- diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index 3d5b8b6eaf..438c4634dc 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -1177,16 +1177,16 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { switch ($html_type) { case 'Radio': if ($data_type == 'Boolean') { - $option = array('No', 'Yes'); + $options = array('No', 'Yes'); } if (is_array($value)) { $display = NULL; foreach ($value as $data) { - $display .= $display ? ', ' . $option[$data] : $option[$data]; + $display .= $display ? ', ' . $options[$data] : $options[$data]; } } else { - $display = CRM_Utils_Array::value($value, $option); + $display = CRM_Utils_Array::value($value, $options); } break;