Skip to content

Commit

Permalink
CRM-21384 - Don't show deleted contacts in case roles
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-21384: Ensure deleted contacts are filtered out of CiviCase
  https://issues.civicrm.org/jira/browse/CRM-21384
  • Loading branch information
colemanw committed Nov 7, 2017
1 parent 6b576a7 commit 8f219a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Case/BAO/Case.php
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ public static function getCaseRoles($contactID, $caseID, $relationshipID = NULL)
LEFT JOIN civicrm_phone ON (civicrm_phone.contact_id = con.id AND civicrm_phone.is_primary = 1)
LEFT JOIN civicrm_email ON (civicrm_email.contact_id = con.id AND civicrm_email.is_primary = 1)
WHERE (rel.contact_id_a = %1 OR rel.contact_id_b = %1) AND rel.case_id = %2
AND rel.is_active = 1 AND (rel.end_date IS NULL OR rel.end_date > NOW())';
AND rel.is_active = 1 AND con.is_deleted = 0 AND (rel.end_date IS NULL OR rel.end_date > NOW())';

$params = array(
1 => array($contactID, 'Positive'),
Expand Down

0 comments on commit 8f219a2

Please sign in to comment.