From d51206ff78eb96b256c63f34ac9734ebc375dc36 Mon Sep 17 00:00:00 2001 From: Atif Shaikh Date: Wed, 12 Mar 2014 19:14:23 +0530 Subject: [PATCH] CRM-10256 fix - Deleted Contacts included in Reports http://issues.civicrm.org/jira/browse/CRM-10256 --- CRM/Report/Form/Member/Summary.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Member/Summary.php b/CRM/Report/Form/Member/Summary.php index 202c21b67e..b34a47a482 100644 --- a/CRM/Report/Form/Member/Summary.php +++ b/CRM/Report/Form/Member/Summary.php @@ -346,7 +346,8 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form { // end of from function where() { - $this->_whereClauses[] = "{$this->_aliases['civicrm_membership']}.is_test = 0"; + $this->_whereClauses[] = "{$this->_aliases['civicrm_membership']}.is_test = 0 AND + {$this->_aliases['civicrm_contact']}.is_deleted = 0"; parent::where(); } -- 2.25.1