CRM-16824: Unrecognized date format in custom fields during import of contributions
authorSeb35 <seb35wikipedia@gmail.com>
Sat, 11 Jul 2015 16:59:36 +0000 (18:59 +0200)
committerSeb35 <seb35wikipedia@gmail.com>
Sat, 11 Jul 2015 16:59:36 +0000 (18:59 +0200)
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

index d68c55223048e83b89606e9fbdf69f6b3c79bbab..8b630fba17aea86f14a6f03b025d6eaa0f650e94 100644 (file)
@@ -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