Fix for rank being set to zero if a specific item is selected

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Cormack 2007-11-13 12:42:53 -06:00 committed by Joshua Ferraro
parent 6b3baae7f3
commit 653885bdf0
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ my $found;
#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 .
if ($checkitem ne ''){
$rank[0] = '0';
$rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns');
my $item = $checkitem;
$item = GetItem($item);
if ( $item->{'holdingbranch'} eq $branch ){