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

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

Return to bug 15565