CRM-18432: In CiviMail’s updateEmailResetDate(), exec the main query.
authorOlivier Tétard <olivier.tetard@miskin.fr>
Mon, 18 Apr 2016 14:11:31 +0000 (16:11 +0200)
committerOlivier Tétard <olivier.tetard@miskin.fr>
Mon, 18 Apr 2016 14:14:32 +0000 (16:14 +0200)
In CRM_Mailing_Event_BAO_Delivered::updateEmailResetDate(), call for
CRM_Core_DAO::executeQuery($query), so the temporary table can be filled.

CRM/Mailing/Event/BAO/Delivered.php

index 4b43cd5fa297bfb07398e8fb0d799122370656b7..ee20d437b1f8aed4cfea61e26d5e6839fca7ee68 100644 (file)
@@ -304,6 +304,7 @@ CREATE TEMPORARY TABLE civicrm_email_temp_values (
               AND       (civicrm_email.reset_date IS NULL OR civicrm_email.reset_date < civicrm_mailing_job.start_date)
             GROUP BY    civicrm_email.id
          ";
+    CRM_Core_DAO::executeQuery($query);
 
     $query = "
 UPDATE     civicrm_email e