From c25248cdb8ffc8b99aa5611e1f8e5ed52414e7b2 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Wed, 11 Nov 2015 13:15:21 -0500 Subject: [PATCH] CRM-17493 - ensure data is properly handled in all cases Not just for participant records. --- CRM/Utils/DeprecatedUtils.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/CRM/Utils/DeprecatedUtils.php b/CRM/Utils/DeprecatedUtils.php index cf1ebe7b9c..b5ac2d5a0d 100644 --- a/CRM/Utils/DeprecatedUtils.php +++ b/CRM/Utils/DeprecatedUtils.php @@ -247,12 +247,7 @@ function _civicrm_api3_deprecated_formatted_param($params, &$values, $create = F if ((strtolower($customLabel['label']) == strtolower(trim($v1))) || (strtolower($customValue) == strtolower(trim($v1))) ) { - if ($type == 'CheckBox') { - $values[$key][$customValue] = 1; - } - else { - $values[$key][] = $customValue; - } + $values[$key][] = $customValue; } } } @@ -725,12 +720,7 @@ function _civicrm_api3_deprecated_activity_formatted_param(&$params, &$values, $ if ((strtolower(trim($customLabel['label'])) == strtolower(trim($v1))) || (strtolower(trim($customValue)) == strtolower(trim($v1))) ) { - if ($type == 'CheckBox') { - $values[$key][$customValue] = 1; - } - else { - $values[$key][] = $customValue; - } + $values[$key][] = $customValue; } } } -- 2.25.1