Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Incomplete
-
Affects Version/s: 4.4.3
-
Fix Version/s: 4.5
-
Component/s: Core CiviCRM
-
Labels:
Description
When importing contact with custom fields, almost all of them never get imported.
After some search found that this static function => CRM_Core_BAO_CustomField::formatCustomField receive an array ($customFormatted) by reference.
Line 2110 of CRM_Contact_BAO_Contact.php
In my case it returns empty sub arrays for almost every custom field.
By using the return of the function like this => $foo = CRM_Core_BAO_CustomField::formatCustomField instead in addition to the referenced variable.
And adding this line just before line 2182 => $data['custom'] = $foo;
I managed to solve it.
Hope it's ok this way