Skip to content
Snippets Groups Projects
Commit 5ce7a855 authored by lcdweb's avatar lcdweb
Browse files

#2850 update_email_resetdate consider opt out on hold

parent 5120879b
No related branches found
No related tags found
No related merge requests found
......@@ -288,6 +288,7 @@ class CRM_Mailing_Event_BAO_Delivered extends CRM_Mailing_Event_DAO_Delivered {
AND civicrm_mailing_job.status = 'Complete'
AND civicrm_mailing_job.end_date BETWEEN DATE_SUB(NOW(), INTERVAL $maxDays day) AND DATE_SUB(NOW(), INTERVAL $minDays day)
AND (civicrm_email.reset_date IS NULL OR civicrm_email.reset_date < civicrm_mailing_job.start_date)
AND civicrm_email.on_hold != 2
GROUP BY civicrm_email.id
";
CRM_Core_DAO::executeQuery($query);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment