From d586f6e9308f48fddcde8ece9aeef1e3cad4040c Mon Sep 17 00:00:00 2001 From: Seb35 Date: Sat, 11 Jul 2015 18:59:36 +0200 Subject: [PATCH] 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. --- CRM/Contribute/Import/Parser/Contribution.php | 1 + 1 file changed, 1 insertion(+) 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 -- 2.25.1