Skip to content

Commit

Permalink
exclude deceased contacts. touches #12
Browse files Browse the repository at this point in the history
  • Loading branch information
jofranz committed Jan 11, 2023
1 parent 19e1589 commit 783eb94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Birthdays/BirthdayContacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function get_birthday_contacts_of_today($is_debug_email = ''): array
WHERE civicrm_contact.contact_type = 'Individual'
{$day_filter}
AND civicrm_contact.is_opt_out = 0
AND civicrm_contact. do_not_email = 0
AND civicrm_contact.do_not_email = 0
AND civicrm_contact.is_deceased = 0
AND group_contact.group_id = {$this->group_id}
AND civicrm_email.is_primary = 1 {$limit}";
$query = CRM_Core_DAO::executeQuery($sql);
Expand Down

0 comments on commit 783eb94

Please sign in to comment.