Details
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
Issue Links
- links to