fix(osticket): Filter by non-merged tickets

This commit is contained in:
Joan Sanchez 2021-09-07 12:12:58 +02:00
parent 7c66517964
commit 2bf55f04bc
1 changed files with 3 additions and 2 deletions

View File

@ -19,8 +19,9 @@ SELECT * FROM (
AND ote.type = 'M'
LEFT JOIN ost_thread_entry oter ON oth.id = oter.thread_id
AND oter.type = 'R'
WHERE ots.state = 'closed'
AND closed BETWEEN ? AND ?
WHERE ot.ticket_pid = NULL
AND ots.state = 'closed'
AND otc.closed BETWEEN ? AND ?
ORDER BY oter.created DESC
) ot GROUP BY ot.ticket_id
ORDER BY ot.assigned