----------------------------------------
* CRM-17299: "Yes or No" custom fields not displayed correctly in table
https://issues.civicrm.org/jira/browse/CRM-17299
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;