From 0ce5d3776879512638b6164052d046b940cb3c54 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 23 Jul 2025 11:05:14 +0200 Subject: [PATCH] Bug 40470: Fix filtering by REPORT_GROUP when auth val is numeric When the authorised value of a REPORT_GROUP is numeric the filtering does not work. Test plan: Create a new REPORT_GROUP av "123" (the description can be alphanumeric) Create a new report and assign it to this new group Confirm that with this patch the filtering works when the "123" tab is selected Signed-off-by: George --- .../prog/en/modules/reports/guided_reports_start.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index b954e48a9d..d9df5325f7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -2493,7 +2493,7 @@ g_id = ''; } - if (g_id && g_id.length > 0) { + if (g_id !== null && g_id !== undefined && g_id.toString().length > 0) { col4.search(g_id, {exact:true}).visible(false); if( group_subgroups[g_id] && group_subgroups[g_id].length > 0 ){ for(var i in group_subgroups[g_id]) { -- 2.39.5