Skip to content
Snippets Groups Projects
Commit 6d10f1dd authored by Jamie McClelland's avatar Jamie McClelland Committed by Eileen McNaughton
Browse files

ensure checkbox imports work on contacts

See #3850
parent 416d6fa9
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment