Bug 17737: Replace GetReservesFromItemnumber with Koha::Item->get_holds_placed_before...
[koha.git] / reserve / placerequest.pl
index c896c9d..92f3c48 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);
@@ -133,5 +134,5 @@ elsif ( $borrower eq '' ) {
 
     # Not sure that Dump() does HTML escaping. Use firebug or something to trace
     # instead.
-    #  print $input->Dump;
+    #print $input->Dump;
 }