From edf21f75167d93d6244df628865ea5cd02329e1e Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Tue, 10 Nov 2015 13:20:42 -0500 Subject: [PATCH] CRM-17493 - fix import of checkbox'ed data Avoid incorrect validation error. --- CRM/Utils/DeprecatedUtils.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CRM/Utils/DeprecatedUtils.php b/CRM/Utils/DeprecatedUtils.php index 5d3ae2552f..cf1ebe7b9c 100644 --- a/CRM/Utils/DeprecatedUtils.php +++ b/CRM/Utils/DeprecatedUtils.php @@ -76,12 +76,7 @@ function _civicrm_api3_deprecated_participant_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