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

(-)a/C4/Reserves.pm (-1 / +6 lines)
Lines 804-809 sub CheckReserves { Link Here
804
            } else {
804
            } else {
805
                # See if this item is more important than what we've got so far
805
                # See if this item is more important than what we've got so far
806
                if ( $res->{'priority'} && $res->{'priority'} < $priority ) {
806
                if ( $res->{'priority'} && $res->{'priority'} < $priority ) {
807
                    my $borrowerinfo=C4::Members::GetMemberDetails($res->{'borrowernumber'});
808
                    my $iteminfo=C4::Items::GetItem($itemnumber);
809
                    my $branch=C4::Circulation::_GetCircControlBranch($iteminfo,$borrowerinfo);
810
                    my $branchitemrule = C4::Circulation::GetBranchItemRule($branch,$iteminfo->{'itype'});
811
                    next if ($branchitemrule->{'holdallowed'} == 0);
812
                    next if (($branchitemrule->{'holdallowed'} == 1) && ($branch ne $borrowerinfo->{'branchcode'}));
807
                    $priority = $res->{'priority'};
813
                    $priority = $res->{'priority'};
808
                    $highest  = $res;
814
                    $highest  = $res;
809
                }
815
                }
810
- 

Return to bug 3595