@@ -, +, @@ circulation down in case of a record with many items and many holds the patron checkouts table. --- C4/Circulation.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2836,12 +2836,12 @@ sub CanBookBeRenewed { # by pushing all the elements onto an array and removing the duplicates. my @reservable; foreach my $b (@borrowernumbers) { - my ($borr) = C4::Members::GetMemberDetails($b); + my ($borr) = C4::Members::GetMember( borrowernumber => $b); foreach my $i (@itemnumbers) { my $item = GetItem($i); - if ( IsAvailableForItemLevelRequest( $item, $borr ) - && CanItemBeReserved( $b, $i ) - && !IsItemOnHoldAndFound($i) ) + if ( !IsItemOnHoldAndFound($i) + && IsAvailableForItemLevelRequest( $item, $borr ) + && CanItemBeReserved( $b, $i ) ) { push( @reservable, $i ); } --