Bug 26488

Summary: Overdue report download not respecting custom patron attribute filter
Product: Koha Reporter: Chad Billman <chad>
Component: ReportsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Chad Billman 2020-09-18 14:08:31 UTC
We have a number of custom patron attributes to track things like graduation year, homeroom, etc.

The overdue report circ/overdue.pl allows us to apply a filter on those attributes and the html table is displayed correctly. However when you click the "Download file of displayed overdues" the custom attributes are not included in the filter.

The attributes are also missing from the generated CSV so it is impossible to filter the export after the download.
Comment 1 Katrin Fischer 2022-07-05 12:20:30 UTC
I believe I have seen a fix for this one - needs some more digging/retesting maybe.
Comment 2 Katrin Fischer 2022-07-15 19:11:05 UTC
This is still valid on current master. To test:

* Create a new patron attribute TEST as a free text field
* Make sure at least 2 patrons in your installation have checked out items
* Edit one of those patrons and fill the TEST attribute with test
* Go to Circulation > Overdues
* Check the checkbox on top to show all checkouts
* Verfiy both your patrons show up
* Limit search by searching for test in your TEST attribute
* Verify the correct patrons show in the search result list
* BUT: download the list: it will show all patrons with checkouts again