@@ -, +, @@ ReservesNeedReturns is off --- reserve/placerequest.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) --- a/reserve/placerequest.pl +++ a/reserve/placerequest.pl @@ -70,13 +70,13 @@ foreach my $bibnum (@biblionumbers) { my @found; -foreach my $checkitem (@checkitems) { - # if we have an item selectionned, and the pickup branch is the same as the holdingbranch - # of the document, we force the value $rank and $found . - $rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns'); - my $item = GetItem($checkitem); - if ( $item->{'holdingbranch'} eq $branch ){ - push @found, 'W' unless C4::Context->preference('ReservesNeedReturns'); +unless (C4::Context->preference('ReservesNeedReturns')) { + foreach my $checkitem (@checkitems) { + # if we have an item selectionned, and the pickup branch is the same as + # the holdingbranch of the document, we force the value $rank and $found + $rank[0] = 0; + my $item = GetItem($checkitem); + push @found, $item->{holdingbranch} eq $branch ? 'W' : undef; } } --