Bug 40470 - REPORT_GROUP authorized value cannot be numeric
Summary: REPORT_GROUP authorized value cannot be numeric
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Reports (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-22 20:43 UTC by George Williams (NEKLS)
Modified: 2025-07-23 14:36 UTC (History)
2 users (show)

See Also:
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 (1.42 KB, patch)
2025-07-23 09:07 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 40470: Fix filtering by REPORT_GROUP when auth val is numeric (1.45 KB, patch)
2025-07-23 14:35 UTC, PTFS Europe Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.