I can reproduce this on the 4.7 demo.

I create a case of type 'Adult Day Care Referral' for client Rebekah Adams.

Using the civicrm/contact/view/case screen, I assign the role 'Health Services Coordinator' to Junko Adams. I use the 'pencil' icon to do this.

The role is assigned to Junko Adams, but the 'Assign Case Role' activity is assigned to Rebekah Adams (the client) and the subject is 'Health Services Coordinator is : Dr. Rebekah Adams'.

That's confusing, and if an email is sent to the client, that could be nasty.

2 Answers 2


It's a bug. On line 1804 of CRM/Case/BAO/Case.php there is the following test ...

   if (isset($dao->caseId) || $dao->rel_contact_id != $contactId) {

Observing how the function is called, the Case Id will always be set, so the condition is always true and the else part is never executed.

Changing the condition to ...

   if ($dao->rel_contact_id != $contactId) {

fixes the behaviour.


It doesn't send an email. There's a couple things like that - e.g. merges show the reported by as the client. I'd probably say it's just never been a high enough priority for anyone to look into.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.