From f5165247977346ba8a9f743bb59f0d07ac7c2a0b Mon Sep 17 00:00:00 2001 From: David Knoll Date: Thu, 4 Jun 2015 13:37:12 +0100 Subject: [PATCH] CRM-16625 fix formatting of dates to be passed to contact creation during import --- CRM/Contact/Import/Parser/Contact.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index f546dd166f..d1785ed72b 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -1878,20 +1878,20 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser { $params[$key] = CRM_Utils_String::strtoboolstr($val); } } + } - if ($key == 'birth_date' && $val) { - CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key); - } - elseif ($key == 'deceased_date' && $val) { - CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key); - } - elseif ($key == 'is_deceased' && $val) { - $params[$key] = CRM_Utils_String::strtoboolstr($val); - } - elseif ($key == 'gender') { - //CRM-4360 - $params[$key] = $this->checkGender($val); - } + if ($key == 'birth_date' && $val) { + CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key); + } + elseif ($key == 'deceased_date' && $val) { + CRM_Utils_Date::convertToDefaultDate($params, $dateType, $key); + } + elseif ($key == 'is_deceased' && $val) { + $params[$key] = CRM_Utils_String::strtoboolstr($val); + } + elseif ($key == 'gender') { + //CRM-4360 + $params[$key] = $this->checkGender($val); } } -- 2.25.1