From 55bda7ca12a673a0351654125ea2df88aed53c2d Mon Sep 17 00:00:00 2001 From: kurund Date: Sat, 5 Jul 2014 20:20:20 +0530 Subject: [PATCH] notice fixes, CRM-14782 ---------------------------------------- * CRM-14782: unable to import 0/no/false values https://issues.civicrm.org/jira/browse/CRM-14782 --- CRM/Contact/Import/Parser/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 2c7448b960..71c0a252d1 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -1147,7 +1147,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser { self::addToErrorMsg(ts('field ID'), $errorMessage); } // validate null values for required custom fields of type boolean - if ($customFields[$customFieldID]['is_required'] && (empty($params['custom_'.$customFieldID]) && !is_numeric($params['custom_'.$customFieldID])) && $customFields[$customFieldID]['data_type'] == 'Boolean') { + if (!empty($customFields[$customFieldID]['is_required']) && (empty($params['custom_'.$customFieldID]) && !is_numeric($params['custom_'.$customFieldID])) && $customFields[$customFieldID]['data_type'] == 'Boolean') { self::addToErrorMsg($customFields[$customFieldID]['label'].'::'.$customFields[$customFieldID]['groupTitle'], $errorMessage); } -- 2.25.1