From: Jamie McClelland Date: Tue, 10 Nov 2015 18:20:42 +0000 (-0500) Subject: CRM-17493 - fix import of checkbox'ed data X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=edf21f75167d93d6244df628865ea5cd02329e1e;p=civicrm-core.git CRM-17493 - fix import of checkbox'ed data Avoid incorrect validation error. --- 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; } } }