From: Ken West Date: Wed, 20 Apr 2016 11:19:03 +0000 (+1000) Subject: CRM-18445 don't 'Assign Case Role' to client X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3b9b4f683b0bbfeeb9158ae26133a64fdbabe38;p=civicrm-core.git CRM-18445 don't 'Assign Case Role' to client --- 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;