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

(-)a/C4/Reserves.pm (-3 / +10 lines)
Lines 930-942 sub CheckReserves { Link Here
930
            } elsif ($res->{'found'} && $res->{'found'} eq 'T') {
930
            } elsif ($res->{'found'} && $res->{'found'} eq 'T') {
931
                return ( "Transferred", $res, \@reserves ); # Found determinated hold, e. g. the transferred one
931
                return ( "Transferred", $res, \@reserves ); # Found determinated hold, e. g. the transferred one
932
            } else {
932
            } else {
933
                my $patrons;
934
                my $items;
935
933
                my $patron;
936
                my $patron;
934
                my $item;
937
                my $item;
935
                my $local_hold_match;
938
                my $local_hold_match;
936
939
940
                my $borrowernumber = $res->{borrowernumber};
941
937
                if ($LocalHoldsPriority) {
942
                if ($LocalHoldsPriority) {
938
                    $patron = Koha::Patrons->find( $res->{borrowernumber} );
943
                    $patron = $patrons->{$borrowernumber} || Koha::Patrons->find($borrowernumber);
939
                    $item = Koha::Items->find($itemnumber);
944
                    $patrons->{$borrowernumber} ||= $patron;
945
946
                    $item = $items->{$itemnumber} || Koha::Items->find($itemnumber);
947
                    $items->{$itemnumber} ||= $item;
940
948
941
                    unless ($item->exclude_from_local_holds_priority || $patron->category->exclude_from_local_holds_priority) {
949
                    unless ($item->exclude_from_local_holds_priority || $patron->category->exclude_from_local_holds_priority) {
942
                        my $local_holds_priority_item_branchcode =
950
                        my $local_holds_priority_item_branchcode =
943
- 

Return to bug 33942