From d4553637e8586b5d92f81cb7af6e4e26bc2e128d Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Thu, 15 Feb 2024 11:21:28 -0700 Subject: [PATCH] Bug 35518: Follow-up for AutoSwitchPatron - clear $patron variable too The AutoSwitchPatron clears the $borrowernumber variable to switch patrons. With the AuthSwitchPatron block moved, the $patron variable still gets set, and the patron doesn't get switched. The clears the $patron variable too. 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 bf7ed246e4..cd0469cd1e 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; + undef $patron; $barcodes = []; $autoswitched = 1; } -- 2.39.2