From 7442508b4ffdbe452f214fd6b62375ab77130cd1 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 9 Sep 2015 02:23:17 +0000 Subject: [PATCH] CRM-14599 - Exclude deleted contacts from test mailing --- api/v3/Mailing.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v3/Mailing.php b/api/v3/Mailing.php index 46c97b86d8..8250138f87 100755 --- a/api/v3/Mailing.php +++ b/api/v3/Mailing.php @@ -591,6 +591,7 @@ function civicrm_api3_mailing_send_test($params) { ->where('c.is_opt_out = 0') ->where('c.do_not_email = 0') ->where('c.is_deceased = 0') + ->where('c.is_deleted = 0') ->groupBy('e.id') ->orderBy(array('e.is_bulkmail DESC', 'e.is_primary DESC')) ->toSQL(); -- 2.25.1