@@ -, +, @@ --- C4/Circulation.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2949,7 +2949,10 @@ sub CanBookBeRenewed { ) { my $biblio = Koha::Biblios->find($item->biblionumber); - my @possible_holds = $biblio->current_holds->unfilled->search({non_priority => 0})->as_list; + my @possible_holds = $biblio->current_holds->unfilled->search( + {non_priority => 0}, + { prefetch => 'patron' } + )->as_list; # Get all other items that could possibly fill reserves # FIXME We could join reserves (or more tables) here to eliminate some checks later --