From fcb8bf21a57219cbd79aae76686b382e62fa7127 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Thu, 15 Feb 2024 10:32:48 -0700 Subject: [PATCH] Bug 35518: follow up - clear the barcode list in AutoSwitchPatron block The AutoSwitchPatron block got moved, and now the @$barcodes variable gets filled and not cleared. Leading to a 'Barcode not found' error when the patron is auto switched. Signed-off-by: Lucas Gass --- circ/circulation.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index dc6691a848..bf7ed246e4 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -131,6 +131,7 @@ if ( C4::Context->preference("AutoSwitchPatron") && $barcode ) { $findborrower = $barcode; undef $barcode; undef $borrowernumber; + $barcodes = []; $autoswitched = 1; } } -- 2.39.2