fix(osticket): Filter by non-merged tickets
This commit is contained in:
parent
7c66517964
commit
2bf55f04bc
|
@ -19,8 +19,9 @@ SELECT * FROM (
|
||||||
AND ote.type = 'M'
|
AND ote.type = 'M'
|
||||||
LEFT JOIN ost_thread_entry oter ON oth.id = oter.thread_id
|
LEFT JOIN ost_thread_entry oter ON oth.id = oter.thread_id
|
||||||
AND oter.type = 'R'
|
AND oter.type = 'R'
|
||||||
WHERE ots.state = 'closed'
|
WHERE ot.ticket_pid = NULL
|
||||||
AND closed BETWEEN ? AND ?
|
AND ots.state = 'closed'
|
||||||
|
AND otc.closed BETWEEN ? AND ?
|
||||||
ORDER BY oter.created DESC
|
ORDER BY oter.created DESC
|
||||||
) ot GROUP BY ot.ticket_id
|
) ot GROUP BY ot.ticket_id
|
||||||
ORDER BY ot.assigned
|
ORDER BY ot.assigned
|
Loading…
Reference in New Issue