Fix for rank being set to zero if a specific item is selected
authorChris Cormack <chris@snaga.liblime.co.nz>
Tue, 13 Nov 2007 18:42:53 +0000 (12:42 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 13 Nov 2007 18:46:51 +0000 (12:46 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
reserve/placerequest.pl

index ba5ae75..64eb94a 100755 (executable)
@@ -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 ){