From 653885bdf0959b2261b9eebf488d0aa56d108184 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 13 Nov 2007 12:42:53 -0600 Subject: [PATCH] Fix for rank being set to zero if a specific item is selected Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- reserve/placerequest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl index ba5ae751e6..64eb94af8a 100755 --- a/reserve/placerequest.pl +++ b/reserve/placerequest.pl @@ -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 ){ -- 2.39.5