From 30f2dfc7afea899779236ac788b1a5f173d28041 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Thu, 28 Jan 2016 10:41:27 +0100 Subject: [PATCH] Bug 14695 - Don't use holds_to_place_count when checking an item. This fix the following bug: If you select 2 in "Holds to place (count)" and finally check an item, so you get 2 holds for the same item. Signed-off-by: Jason M. Burds Signed-off-by: Benjamin Rokseth --- reserve/placerequest.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl index c896c9d..ee916ea 100755 --- a/reserve/placerequest.pl +++ b/reserve/placerequest.pl @@ -72,6 +72,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 (defined $checkitem && $checkitem ne ''){ + $holds_to_place_count = 1; $rank[0] = '0' unless C4::Context->preference('ReservesNeedReturns'); my $item = $checkitem; $item = GetItem($item); -- 2.1.4