Bug 42011 - Unused arguments in members/readingrec.pl
Summary: Unused arguments in members/readingrec.pl
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 33948
Blocks:
  Show dependency treegraph
 
Reported: 2026-03-06 11:09 UTC by Baptiste Wojtkowski (bwoj)
Modified: 2026-03-06 11:09 UTC (History)
2 users (show)

See Also:
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:


Attachments

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