From e3b9b4f683b0bbfeeb9158ae26133a64fdbabe38 Mon Sep 17 00:00:00 2001 From: Ken West Date: Wed, 20 Apr 2016 21:19:03 +1000 Subject: [PATCH] CRM-18445 don't 'Assign Case Role' to client --- CRM/Case/BAO/Case.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Case/BAO/Case.php b/CRM/Case/BAO/Case.php index 9826eca3cf..abad487d52 100644 --- a/CRM/Case/BAO/Case.php +++ b/CRM/Case/BAO/Case.php @@ -1800,8 +1800,8 @@ SELECT case_status.label AS case_status, status_id, civicrm_case_type.title AS c $dao = CRM_Core_DAO::executeQuery($query, $queryParam); while ($dao->fetch()) { - //to get valid assignee contact(s). - if (isset($dao->caseId) || $dao->rel_contact_id != $contactId) { + // The assignee is not the client. + if ($dao->rel_contact_id != $contactId) { $caseRelationship = $dao->relation_a_b; $assigneContactName = $dao->clientName; $assigneContactIds[$dao->rel_contact_id] = $dao->rel_contact_id; -- 2.25.1