From: Coleman Watts Date: Mon, 3 Aug 2015 20:23:33 +0000 (-0400) Subject: CRM-14599 - Exclude deleted contacts from test mailing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=196c4f47065eb2025f6c8e4c611e0ceafa5f8621;p=civicrm-core.git CRM-14599 - Exclude deleted contacts from test mailing --- 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();