CRM-18445 don't 'Assign Case Role' to client
authorKen West <ken.west@internode.on.net>
Wed, 20 Apr 2016 11:19:03 +0000 (21:19 +1000)
committerKen West <ken.west@internode.on.net>
Wed, 20 Apr 2016 11:19:03 +0000 (21:19 +1000)
CRM/Case/BAO/Case.php

index 9826eca3cf15c1060f634475fd501de7dea93d97..abad487d521bced2c849cb2a1c17bead12fd0c0e 100644 (file)
@@ -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;