From bedc61c74f818a10775b33d2c8dc065f4de7b323 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 4 May 2016 20:58:16 -0400 Subject: [PATCH] Only send overdue notices for open tickets --- cron/calendar_reminders.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron/calendar_reminders.php b/cron/calendar_reminders.php index 1cd8d710..c3937826 100644 --- a/cron/calendar_reminders.php +++ b/cron/calendar_reminders.php @@ -123,6 +123,9 @@ $sql = "SELECT `ticket`.`id` AS `id`, `ticket`.`trackid` AS `trackid`, `ticket`. `ticket`.`custom17` AS `custom17`, `ticket`.`custom18` AS `custom19`, `ticket`.`custom19` AS `custom19`, `ticket`.`custom20` AS `custom20`, `ticket`.`html` AS `html` FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "tickets` AS `ticket` + INNER JOIN `" . hesk_dbEscape($hesk_settings['db_pfix']) . "statuses` AS `status` + ON `ticket`.`status` = `status`.`ID` + AND `status`.`IsClosed` = 0 LEFT JOIN `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` AS `user` ON `ticket`.`owner` = `user`.`id` WHERE `due_date` IS NOT NULL