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

CiviCase role relationships reversed

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Relationships created using the CiviCase Manage screens result in reversed relationships.

      Roles created by the Case GUI follow the pattern of Contact A = client, Contact B = role holder. In 4.6.24, assigning someone to a role results in the relationship being created correctly as A=client, B=role holder. In 4.7.14 (and possibly earlier 4.7), the relationship is created wrongly as A=role holder, B=client.

      Note that changing Case Manager works correctly. The problem occurs on other roles.

      The Contact summary Relationships tab shows the reversed labels on 4.7

      To reproduce:

      • Enable CiviCase
      • Create a new case of Housing Support
      • Expand Roles section
      • Use Edit icon on Benefits Specialist
      • Set to some contact
      • Look at relationship info (eg with drush cvapi Relationship.get caseid=X)
      • Observe that A=role holder, B=client.

      This may be related to https://issues.civicrm.org/jira/browse/CRM-16980 and https://github.com/civicrm/civicrm-core/pull/6806 that did significant reworking of roles between 4.6 & 4.7.

      The issue was noted some months ago on SE: http://civicrm.stackexchange.com/questions/11294

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              ayduns Aidan Saunders
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: