Bug 14695 - Don't use holds_to_place_count when checking an item.
authorAlex Arnaud <alex.arnaud@biblibre.com>
Thu, 28 Jan 2016 09:41:27 +0000 (10:41 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 3 Sep 2016 00:21:22 +0000 (00:21 +0000)
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 <JBurds@dubuque.lib.ia.us>
Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>

reserve/placerequest.pl

index c896c9d..ee916ea 100755 (executable)
@@ -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);