CRM-14319 addition to scheduled reminders not being sent
authorEileen McNaughton <eileen@fuzion.co.nz>
Fri, 2 May 2014 00:15:07 +0000 (17:15 -0700)
committerEileen McNaughton <eileen@fuzion.co.nz>
Fri, 2 May 2014 00:15:07 +0000 (17:15 -0700)
CRM/Core/BAO/ActionSchedule.php

index 17983d2ed39b9b8bd4056033b72f66924c1d51d0..e00f7c674b02411ae197bad6cc631e7170ce2aeb 100755 (executable)
@@ -1092,12 +1092,12 @@ LEFT JOIN {$reminderJoinClause}
         $insertAdditionalSql ="
 INSERT INTO civicrm_action_log (contact_id, entity_id, entity_table, action_schedule_id)
 {$addSelect}
-FROM ({$contactTable}, {$table})
+FROM ({$contactTable})
 LEFT JOIN {$additionReminderClause}
 {$addGroup}
-{$additionWhere} c.is_deleted = 0 AND c.is_deceased = 0
+WHERE c.is_deleted = 0 AND c.is_deceased = 0
 {$addWhereClause}
-AND {$dateClause}
+
 AND c.id NOT IN (
      SELECT rem.contact_id
      FROM civicrm_action_log rem INNER JOIN {$mapping->entity} e ON rem.entity_id = e.id