Body: <p>On the 4.7 Drupal demo site I created a case of type 'Housing Support' for Rebekah Adams. I added Beulah Barkley as the 'Benefits Specialist. My user (Test Test in the demo) was the 'Homeless Service Coordinator'.</p>
  
  <p>The problem is that the 2 relationships get added differently.</p>
  
  <p><a href="https://i.sstatic.net/yfjLM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yfjLM.png" alt="Relationships for Rebekah Adams"></a></p>
  
  <p>The image shows the relationships tab from Rebekah Adams' record (the case client). Note that Test Test is her Homeless Services Coordinator (OK), while she is the Benefits Specialist for Beula Barkley (Ouch, wrong way around).</p>
  
  <p>Both relationships are defined the same way (B->A notation) in the Case definition ...</p>
  
  <p><a href="https://i.sstatic.net/HyB2z.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/HyB2z.png" alt="enter image description here"></a></p>
  
  <p>This is clearly a bug as it used to work fine in 4.6.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-20T04:03:17.640Z
Comments.Text: This seems to be due to CRM-16980 - Improve case role handing. The code seems to now expect the client to be Contact B in the relationship. Except for the Case Manager relationship where the client is Contact A!
Comments.UserDisplayName: Ken West
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-16T10:54:19.467Z
Comments.Text: Has this been logged as a bug?
Comments.UserDisplayName: Graham
Tags: <civicase><issues>
Title: In 4.7 CiviCase relationships are being inserted the wrong way round: bug or feature?
ThreadText: # In 4.7 CiviCase relationships are being inserted the wrong way round: bug or feature?
  
  (Asked by: username_0 on 2016-04-19)
  
  On the 4.7 Drupal demo site I created a case of type 'Housing Support' for Rebekah Adams. I added Beulah Barkley as the 'Benefits Specialist. My user (Test Test in the demo) was the 'Homeless Service Coordinator'.
  
  The problem is that the 2 relationships get added differently.
  
  [![Relationships for Rebekah Adams](https://i.sstatic.net/yfjLM.png)](https://i.sstatic.net/yfjLM.png)
  
  The image shows the relationships tab from Rebekah Adams' record (the case client). Note that Test Test is her Homeless Services Coordinator (OK), while she is the Benefits Specialist for Beula Barkley (Ouch, wrong way around).
  
  Both relationships are defined the same way (B->A notation) in the Case definition ...
  
  [![enter image description here](https://i.sstatic.net/HyB2z.png)](https://i.sstatic.net/HyB2z.png)
  
  This is clearly a bug as it used to work fine in 4.6.
  
  **Tags:** civicase, issues
  
  > **Comments:**
  > **username_0**: This seems to be due to CRM-16980 - Improve case role handing. The code seems to now expect the client to be Contact B in the relationship. Except for the Case Manager relationship where the client is Contact A!  
  > **username_1**: Has this been logged as a bug?  
  
  ---
  
  ## 0 answers
  
  