diff --git a/circ/circulation.pl b/circ/circulation.pl index 89ccf2a765..705ac45ac5 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -76,7 +76,7 @@ my $autoswitched; my $borrowernumber = $query->param('borrowernumber'); if (C4::Context->preference("AutoSwitchPatron") && $barcode) { - my $new_barcode = $findborrower; + my $new_barcode = $barcode; Koha::Plugins->call( 'patron_barcode_transform', \$new_barcode ); if (Koha::Patrons->search( { cardnumber => $new_barcode} )->count() > 0) { $findborrower = $barcode;