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

(-)a/reserve/placerequest.pl (-8 / +7 lines)
Lines 73-85 foreach my $bibnum (@biblionumbers) { Link Here
73
73
74
my @found;
74
my @found;
75
75
76
foreach my $checkitem (@checkitems) {
76
unless (C4::Context->preference('ReservesNeedReturns')) {
77
    # if we have an item selectionned, and the pickup branch is the same as the holdingbranch
77
    foreach my $checkitem (@checkitems) {
78
    # of the document, we force the value $rank and $found .
78
        # if we have an item selectionned, and the pickup branch is the same as
79
    $rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns');
79
        # the holdingbranch of the document, we force the value $rank and $found
80
    my $item = GetItem($checkitem);
80
        $rank[0] = 0;
81
    if ( $item->{'holdingbranch'} eq $branch ){
81
        my $item = GetItem($checkitem);
82
        push @found, 'W' unless C4::Context->preference('ReservesNeedReturns');
82
        push @found, $item->{holdingbranch} eq $branch ? 'W' : undef;
83
    }
83
    }
84
}
84
}
85
85
86
- 

Return to bug 15565