Bug 42011

Summary: Unused arguments in members/readingrec.pl
Product: Koha Reporter: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 33948    
Bug Blocks:    

Description Baptiste Wojtkowski (bwoj) 2026-03-06 11:09:21 UTC
In members/readingrec.pl:

112             my $oc = $patron->old_checkouts(
113                 {},
114                 {
115                     order_by => 'date_due desc',
116                     prefetch => { item => { biblio => 'biblioitems' } },
117                 }
118             )->as_list;

old_checkout does not take any argument, is a ->search missing ? order_by syntax looks obsolete too https://metacpan.org/pod/DBIx::Class::ResultSet#order_by