@@ -, +, @@ usage --- circ/checkout-notes.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/circ/checkout-notes.pl +++ a/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, --