Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5888

Export select fields yields array_merge errors

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.2, 3.1.3
    • Fix Version/s: 3.1.4
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      when exporting contacts using the select fields option, you get a series of warnings re: the first argument of the array_merge

      to fix, replace lines 586-591 with:

      if ( isset($relationshipType->$direction) )

      { $relatedFields = array_merge((array)$relatedMapperFields[$relationshipType->$direction], (array)$relationshipCustomFields); }

      else

      { $target_type = 'contact_type_'.$second; $relatedFields = array_merge((array)$relatedMapperFields[$relationshipType->$target_type], (array)$relationshipCustomFields); }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rahulbile Rahul Bile
                Reporter:
                lcdweb Brian Shaughnessy
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: