Skip to content

Commit

Permalink
Merge pull request #11143 from JMAConsulting/CRM-21267-rc
Browse files Browse the repository at this point in the history
CRM-21267: Fixed call to undefined formatCustomDate method in Parser.
  • Loading branch information
eileenmcnaughton authored Oct 16, 2017
2 parents 84fcd99 + 820c3c5 commit ab5e6a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Contact/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ public function formatCommonData($params, &$formatted, &$contactFields) {
) {
//we should not update Date to null, CRM-4062
if ($val && ($customFields[$customFieldID]['data_type'] == 'Date')) {
self::formatCustomDate($params, $formatted, $dateType, $key);
//CRM-21267
CRM_Contact_Import_Parser_Contact::formatCustomDate($params, $formatted, $dateType, $key);
}
elseif ($customFields[$customFieldID]['data_type'] == 'Boolean') {
if (empty($val) && !is_numeric($val) && $this->_onDuplicate == CRM_Import_Parser::DUPLICATE_FILL) {
Expand Down

0 comments on commit ab5e6a6

Please sign in to comment.