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

Export contacts and choosing a relationship-based field does not work for all relationship types

    Details

    • Type: Bug
    • Status: Won't Do
    • Priority: Trivial
    • Resolution: Won't Do
    • Affects Version/s: 4.3.8, 4.4.4
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      I have reproduced the issue in the public sand box.

      To reproduce:
      1) Do a search on contacts, any criteria

      2) In the list of actions, choose "Export Contacts"

      3) On the next screen choose to "Select fields for export" then click "Continue"

      4) Choose any field ( I chose sort name)

      5) For the second field choose a relationship type that has the same name in both directions (I chose Spouse) Then choose field for the related contact. (I choose "sort name" of the spouse)

      6) Click "Export"

      In the resulting CSV file, some of the "sort name of spouse" fields are empty. It seems like the code only looked at the "a_b" part of the spouse relationship, not "b_a" This issue is impacting all relationship types where the relationship name is the same on both sides (or one label is blank)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sgladstone Sarah Gladstone
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: