Bug 40470

Summary: REPORT_GROUP authorized value cannot be numeric
Product: Koha Reporter: George Williams (NEKLS) <george>
Component: ReportsAssignee: Bugs List <koha-bugs>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, lisette
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40470: Fix filtering by REPORT_GROUP when auth val is numeric
Bug 40470: Fix filtering by REPORT_GROUP when auth val is numeric

Description George Williams (NEKLS) 2025-07-22 20:43:11 UTC
If you create a REPORT_GROUP authorized value with a purely numeric value, the tabs on guided_reports.pl will not filter based on that value.

REPORT_GROUP authorized values with alphabetic and numeric values do work - it's only purely numeric values that cause the tab filtering to fail.
Comment 1 Jonathan Druart 2025-07-23 09:07:32 UTC
Created attachment 184533 [details] [review]
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
Comment 2 PTFS Europe Sandboxes 2025-07-23 14:35:49 UTC
Created attachment 184557 [details] [review]
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 <george@nekls.org>
Comment 3 George Williams (NEKLS) 2025-07-23 14:36:51 UTC
Works according to test plan.  Thanks.