From 33754b7d677df605803eafce7b24e5a6ff64b2a2 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 4 Oct 2021 09:07:47 +0200 Subject: [PATCH] Updated osticket report sql --- print/templates/email/osticket-report/sql/tickets.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print/templates/email/osticket-report/sql/tickets.sql b/print/templates/email/osticket-report/sql/tickets.sql index 4d5f5b13f..7cb35aaab 100644 --- a/print/templates/email/osticket-report/sql/tickets.sql +++ b/print/templates/email/osticket-report/sql/tickets.sql @@ -19,7 +19,7 @@ SELECT * FROM ( AND ote.type = 'M' LEFT JOIN ost_thread_entry oter ON oth.id = oter.thread_id AND oter.type = 'R' - WHERE ot.ticket_pid = NULL + WHERE ot.ticket_pid IS NULL AND ots.state = 'closed' AND ot.closed BETWEEN ? AND ? ORDER BY oter.created DESC