From 12894e6c918e9aaf199476dd8d26366d2775dcd3 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 6 Oct 2015 18:59:46 +0530 Subject: [PATCH] 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 --- CRM/Core/BAO/CustomField.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.25.1