From: Seb35 Date: Sat, 11 Jul 2015 16:59:36 +0000 (+0200) Subject: CRM-16824: Unrecognized date format in custom fields during import of contributions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d586f6e9308f48fddcde8ece9aeef1e3cad4040c;p=civicrm-core.git CRM-16824: Unrecognized date format in custom fields during import of contributions During import of contributions, the contact type was not explicely set, leading to misrecognized contribution custom fields. This was fixed by comparing with the pre-import (summary) function, and tested on a real import of contributions with custom fields. --- diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index d68c552230..8b630fba17 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -260,6 +260,7 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa } $params = &$this->getActiveFieldParams(); + $params['contact_type'] = 'Contribution'; $formatted = array('version' => 3); // don't add to recent items, CRM-4399