Lines 76-82
my $autoswitched;
Link Here
|
76 |
my $borrowernumber = $query->param('borrowernumber'); |
76 |
my $borrowernumber = $query->param('borrowernumber'); |
77 |
|
77 |
|
78 |
if (C4::Context->preference("AutoSwitchPatron") && $barcode) { |
78 |
if (C4::Context->preference("AutoSwitchPatron") && $barcode) { |
79 |
my $new_barcode = $findborrower; |
79 |
my $new_barcode = $barcode; |
80 |
Koha::Plugins->call( 'patron_barcode_transform', \$new_barcode ); |
80 |
Koha::Plugins->call( 'patron_barcode_transform', \$new_barcode ); |
81 |
if (Koha::Patrons->search( { cardnumber => $new_barcode} )->count() > 0) { |
81 |
if (Koha::Patrons->search( { cardnumber => $new_barcode} )->count() > 0) { |
82 |
$findborrower = $barcode; |
82 |
$findborrower = $barcode; |
83 |
- |
|
|