From 2206959c021e3f477ad6323b7c0901ff328d541c 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 Content-Type: text/plain; charset="utf-8" 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. --- circ/circulation.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index 2a49ce5a52..cc3169b352 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.34.1