https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19938 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com Status|Failed QA |RESOLVED Resolution|--- |WONTFIX --- Comment #31 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- At this point, I'd say we should target just removing the sub entirely. It can be replaced with something like: ```perl my $overdue_checkouts = Koha::Checkouts->search( { 'me.borrowernumber' => $borrowernumber, 'me.date_due' => { '<' => \'NOW()' }, }, { prefetch => { item => 'biblio' }, order_by => 'me.date_due', } ); while ( my $checkout = $overdue_checkouts->next ) { my $item = $checkout->item; # already prefetched, no extra query my $biblio = $item->biblio; # already prefetched, no extra query printf "%s %s %s\n", $checkout->date_due, $item->barcode, $biblio->title; } ``` Closing this bug. -- You are receiving this mail because: You are watching all bug changes.