Details

      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

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              mmauroy Matthias de MAUROY - CYIM
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: