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

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

Return to bug 15565