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

advanced search by relationship and "target group" returns both contacts for reciprocal relationships (e.g., "spouse of")

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.26
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      To reproduce:

      1. Start with three contacts, Alice, Bob, and Carl.
      2. Create a "spouse of" relationship between Bob and Alice.
      3. Create a "parent/child" relationship between Alice and Carl.
      4. Ensure that Alice is in the group "Advisory Board" and that Bob and Carl are not.
      5. Open Advanced Search with these criteria under the "Relationships" accordion: 
        1. Relationship Type = "Child of"
        2. Target Contact(s) in Group = "Advisory Board"
      6. Run the search and observe that Carl is in the search results, and Alice is not. This is expected behavior.
      7. Open Advanced Search with these criteria under the "Relationships" accordion: 
        1. Relationship Type = "Spouse of"
        2. Target Contact(s) in Group = "Advisory Board"
      8. Run the search and observe that Bob is in the search results, and Alice is also. This is not expected behavior. Expected is that only Bob should appear in the results.

      The same unexpected behavior also happens with other reciprocally named relationships such as "Sibling of".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              allenshaw Allen Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: