From 475c97aef65f4c14877af4e9193e96c1502ed453 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 22 Oct 2015 22:12:24 +0530 Subject: [PATCH] format only to checkbox values --- CRM/Core/BAO/CustomField.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/CustomField.php b/CRM/Core/BAO/CustomField.php index b5e12552ee..80d25738c4 100644 --- a/CRM/Core/BAO/CustomField.php +++ b/CRM/Core/BAO/CustomField.php @@ -1214,8 +1214,10 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField { case 'AdvMulti-Select': case 'Multi-Select': if (is_array($value)) { - // CRM-12989 fix - CRM_Utils_Array::formatArrayKeys($value); + if ($html_type == 'CheckBox') { + // CRM-12989 fix + CRM_Utils_Array::formatArrayKeys($value); + } $checkedData = $value; } -- 2.25.1