Merge pull request 'fix(osticket): Filter by non-merged tickets' (#727) from 3080-osticket_report into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #727
Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
Carlos Jimenez Ruiz 2021-09-07 10:17:50 +00:00
commit fa54dc5fa9
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