From: Jamie McClelland Date: Fri, 4 Nov 2022 15:36:24 +0000 (-0400) Subject: ensure checkbox imports work on contacts X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6d10f1dd0217f6f2747b7d0bfaba4a5cbc4d61d3;p=civicrm-core.git ensure checkbox imports work on contacts See https://lab.civicrm.org/dev/core/-/issues/3850 --- diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 523924c4c4..f1b7b92b0e 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -420,12 +420,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser { if ((strtolower($v2['label']) == strtolower(trim($v1))) || (strtolower($v2['value']) == strtolower(trim($v1))) ) { - if ($htmlType == 'CheckBox') { - $params[$key][$v2['value']] = $formatted[$key][$v2['value']] = 1; - } - else { - $params[$key][] = $formatted[$key][] = $v2['value']; - } + $params[$key][] = $formatted[$key][] = $v2['value']; } } }