From 4dbcc0dd5c732e59474cac16cd6d489be572ee22 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 26 Mar 2021 12:32:32 +0100 Subject: [PATCH 1/2] HOTFIX: Ticket filter changed ticketGetTotal() args --- modules/ticket/back/methods/ticket/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket/filter.js b/modules/ticket/back/methods/ticket/filter.js index 984cb722d..22cbc938f 100644 --- a/modules/ticket/back/methods/ticket/filter.js +++ b/modules/ticket/back/methods/ticket/filter.js @@ -262,7 +262,7 @@ module.exports = Self => { CREATE TEMPORARY TABLE tmp.ticket (INDEX (ticketFk)) ENGINE = MEMORY SELECT id ticketFk FROM tmp.filter`); - stmts.push('CALL ticketGetTotal()'); + stmts.push('CALL ticketGetTotal(FALSE)'); stmt = new ParameterizedSQL(` SELECT From 320e3143cd3a5c5d97b2624b44d95a54e0d86bd4 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 26 Mar 2021 12:51:14 +0100 Subject: [PATCH 2/2] Ticket filter hotfix --- modules/ticket/back/methods/ticket/filter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ticket/back/methods/ticket/filter.js b/modules/ticket/back/methods/ticket/filter.js index 22cbc938f..7ce89bc3e 100644 --- a/modules/ticket/back/methods/ticket/filter.js +++ b/modules/ticket/back/methods/ticket/filter.js @@ -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