From 236808da226bbb923e88b24baa9836da61a6161c 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 Content-Type: text/plain; charset="utf-8" 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. --- circ/circulation.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index a8aa0a5978..419cb5b433 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.34.1