From 8cf0ea971d9bba0eb563d7826b2634d810acbd2b Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 27 Jun 2017 21:55:09 +0000 Subject: [PATCH] Bug 17698: [FOLLOW-UP] Reverting back to original resultset usage See Comment 25 --- circ/checkout-notes.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/circ/checkout-notes.pl b/circ/checkout-notes.pl index e0a7c51..0553352 100755 --- a/circ/checkout-notes.pl +++ b/circ/checkout-notes.pl @@ -38,7 +38,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( ); my $pending_checkout_notes = Koha::Checkouts->search({ noteseen => 0 })->count; -my @notes = Koha::Checkouts->search({ 'me.note' => { '!=', undef } }, { prefetch => [ 'borrower', { 'item' => 'biblio' } ] }); +my @notes = Koha::Database->new()->schema()->resultset('Issue')->search( + { 'me.note' => { '!=', undef } }, + { prefetch => [ 'borrower', { 'item' => 'biblio' } ] } +); $template->param( pending_checkout_notes => $pending_checkout_notes, -- 2.1.4