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

(-)a/reserve/request.pl (-4 / +3 lines)
Lines 548-555 foreach my $biblionumber (@biblionumbers) { Link Here
548
548
549
                $item->{'holdallowed'} = $branchitemrule->{'holdallowed'};
549
                $item->{'holdallowed'} = $branchitemrule->{'holdallowed'};
550
550
551
                my $can_item_be_reserved = CanItemBeReserved( $patron->borrowernumber, $itemnumber, $pickup );
551
                my $can_item_be_reserved = CanItemBeReserved( $patron->borrowernumber, $itemnumber, $pickup )->{status};
552
                $item->{not_holdable} = $can_item_be_reserved->{status} unless ( $can_item_be_reserved->{status} eq 'OK' );
552
                $item->{not_holdable} = $can_item_be_reserved unless $can_item_be_reserved eq 'OK';
553
553
554
                $item->{item_level_holds} = Koha::IssuingRules->get_opacitemholds_policy( { item => $item_object, patron => $patron } );
554
                $item->{item_level_holds} = Koha::IssuingRules->get_opacitemholds_policy( { item => $item_object, patron => $patron } );
555
555
Lines 557-563 foreach my $biblionumber (@biblionumbers) { Link Here
557
                       !$item->{cantreserve}
557
                       !$item->{cantreserve}
558
                    && !$exceeded_maxreserves
558
                    && !$exceeded_maxreserves
559
                    && IsAvailableForItemLevelRequest($item_object, $patron)
559
                    && IsAvailableForItemLevelRequest($item_object, $patron)
560
                    && $can_item_be_reserved->{status} eq 'OK'
560
                    && $can_item_be_reserved eq 'OK'
561
                  )
561
                  )
562
                {
562
                {
563
                    $item->{available} = 1;
563
                    $item->{available} = 1;
564
- 

Return to bug 24168