View | Details | Raw Unified | Return to bug 14736
Collapse All | Expand All

(-)a/C4/Circulation.pm (-5 / +4 lines)
Lines 2779-2790 sub CanBookBeRenewed { Link Here
2779
            # by pushing all the elements onto an array and removing the duplicates.
2779
            # by pushing all the elements onto an array and removing the duplicates.
2780
            my @reservable;
2780
            my @reservable;
2781
            foreach my $b (@borrowernumbers) {
2781
            foreach my $b (@borrowernumbers) {
2782
                my ($borr) = C4::Members::GetMemberDetails($b);
2782
                my ($borr) = C4::Members::GetMember( borrowernumber => $b);
2783
                foreach my $i (@itemnumbers) {
2783
                foreach my $i (@itemnumbers) {
2784
                    my $item = GetItem($i);
2784
                    my $item = GetItem($i);
2785
                    if (   IsAvailableForItemLevelRequest( $item, $borr )
2785
                    if (  !IsItemOnHoldAndFound($i)
2786
                        && CanItemBeReserved( $b, $i )
2786
                        && IsAvailableForItemLevelRequest( $item, $borr )
2787
                        && !IsItemOnHoldAndFound($i) )
2787
                        && CanItemBeReserved( $b, $i ) )
2788
                    {
2788
                    {
2789
                        push( @reservable, $i );
2789
                        push( @reservable, $i );
2790
                    }
2790
                    }
2791
- 

Return to bug 14736