From d502b23c962e2a61170d8765a76ad8490c077611 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 9 Jul 2020 14:36:31 -0400 Subject: [PATCH] Bug 25969: Checking in a found hold at a different branch then confirming the hold causes internal server error If a record level hold is filled and waiting at Library A, and the item is checked in at Library B, and an attempt is made to re-fill the hold with the item, Koha will return an ISE. Test Plan: 1) Place a hold for Library A, at Library A, for pickup at Library A 2) Check in the item at Library A and fill the hold so it is waiting at Library A 3) Log in as Library B, check in the same barcode 4) Note the request to fill the hold with the item 5) Choose to fill the hold 6) Note you get an internal server error 7) Apply this patch 8) Restart all the things! 9) Repeat steps 1-5 10) No ISE! --- circ/returns.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/returns.pl b/circ/returns.pl index e1bce3c3f1..ddb7f10c4c 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -421,6 +421,7 @@ if ( $messages->{'ResFound'}) { hold_auto_filled => 1, print_slip => C4::Context->preference('HoldsAutoFillPrintSlip'), reserve_id => $nextreservinfo->{reserve_id}, + itemnumber => $itemnumber, ); if ( $messages->{'transfert'} ) { -- 2.11.0