Ticket filter hotfix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-03-26 12:51:14 +01:00
parent 4dbcc0dd5c
commit 320e3143cd
1 changed files with 2 additions and 2 deletions

View File

@ -255,14 +255,14 @@ module.exports = Self => {
LEFT JOIN alertLevel al ON al.alertLevel = f.alertLevel
WHERE (al.code = 'FREE' OR f.alertLevel IS NULL)
AND f.shipped >= CURDATE()`);
stmts.push('CALL ticketGetProblems()');
stmts.push('CALL ticketGetProblems(FALSE)');
stmts.push('DROP TEMPORARY TABLE IF EXISTS tmp.ticket');
stmts.push(`
CREATE TEMPORARY TABLE tmp.ticket
(INDEX (ticketFk)) ENGINE = MEMORY
SELECT id ticketFk FROM tmp.filter`);
stmts.push('CALL ticketGetTotal(FALSE)');
stmts.push('CALL ticketGetTotal()');
stmt = new ParameterizedSQL(`
SELECT