Skip to content
Snippets Groups Projects
Commit 93582fe2 authored by Jamie McClelland's avatar Jamie McClelland
Browse files

CRM-13960 - import - ensure empty fields don't throw validation errors

----------------------------------------
* CRM-13960: importing an empty custom data value for bolean type results in validation error
  http://issues.civicrm.org/jira/browse/CRM-13960
parent 91baec38
No related branches found
No related tags found
No related merge requests found
......@@ -1891,8 +1891,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser {
//now format custom data.
foreach ($params as $key => $field) {
if (!isset($field)){
// if ($field == NULL || $field === '') {
if (!isset($field) || empty($field)){
unset($params[$key]);
continue;
}
......
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