From df8bf05e2dc6d4bd7979a0487a76f59fabf8a68b Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 1 Sep 2015 16:08:58 +0530 Subject: [PATCH] CRM-16514 -- Scheduled reminder for event sends email repeatedly --- CRM/Core/BAO/ActionSchedule.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/BAO/ActionSchedule.php b/CRM/Core/BAO/ActionSchedule.php index 6c1c763973..081c0bca5a 100755 --- a/CRM/Core/BAO/ActionSchedule.php +++ b/CRM/Core/BAO/ActionSchedule.php @@ -1322,6 +1322,7 @@ LEFT JOIN {$additionReminderClause} WHERE c.is_deleted = 0 AND c.is_deceased = 0 {$addWhereClause} +AND reminder.id IS NULL 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 -- 2.25.1