Commit 6ba5b962 authored by Kevin Cristiano's avatar Kevin Cristiano 🌎
Browse files

Merge pull request #3 from progressivetech/deleted-targets

don't include deleted targets.
parents b47c98a1 d75b9bad
......@@ -970,8 +970,9 @@ function petitionemail_get_recipients($contact_id, $petition_id) {
$params = array();
$added_tables = array();
// Initialize the from clause
// Initialize the from clause and where clause
$from[] = 'civicrm_contact c';
$where[] = 'c.is_deleted = 0';
// We build a sub where clause that limits results based on the
// matching group and matching field that will be put together using
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment