Bugzilla – Attachment 184533 Details for
Bug 40470
REPORT_GROUP authorized value cannot be numeric
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40470: Fix filtering by REPORT_GROUP when auth val is numeric
Bug-40470-Fix-filtering-by-REPORTGROUP-when-auth-v.patch (text/plain), 1.42 KB, created by
Jonathan Druart
on 2025-07-23 09:07:32 UTC
(
hide
)
Description:
Bug 40470: Fix filtering by REPORT_GROUP when auth val is numeric
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-23 09:07:32 UTC
Size:
1.42 KB
patch
obsolete
>From 718f2113a0c4906006fbbf1738f34e721b5264b9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 >--- > .../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 b954e48a9d2..d9df5325f7a 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.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40470
:
184533
|
184557