View | Details | Raw Unified | Return to bug 15752
Collapse All | Expand All

(-)a/circ/circulation.pl (-2 / +2 lines)
Lines 85-95 my $barcodes = []; Link Here
85
my $barcode =  $query->param('barcode');
85
my $barcode =  $query->param('barcode');
86
my $findborrower;
86
my $findborrower;
87
my $autoswitched;
87
my $autoswitched;
88
my $borrowernumber = $query->param('borrowernumber');
88
89
89
if (C4::Context->preference("AutoSwitchPatron") && $barcode) {
90
if (C4::Context->preference("AutoSwitchPatron") && $barcode) {
90
    if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) {
91
    if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) {
91
        $findborrower = $barcode;
92
        $findborrower = $barcode;
92
        undef $barcode;
93
        undef $barcode;
94
        undef $borrowernumber;
93
        $autoswitched = 1;
95
        $autoswitched = 1;
94
    }
96
    }
95
}
97
}
Lines 117-123 if ( $barcode || ( defined($barcode) && $barcode eq '0' ) ) { Link Here
117
$barcodes = [ uniq @$barcodes ];
119
$barcodes = [ uniq @$barcodes ];
118
120
119
my $template_name = q|circ/circulation.tt|;
121
my $template_name = q|circ/circulation.tt|;
120
my $borrowernumber = $query->param('borrowernumber');
121
my $patron = $borrowernumber ? Koha::Patrons->find( $borrowernumber ) : undef;
122
my $patron = $borrowernumber ? Koha::Patrons->find( $borrowernumber ) : undef;
122
my $batch = $query->param('batch');
123
my $batch = $query->param('batch');
123
my $batch_allowed = 0;
124
my $batch_allowed = 0;
124
- 

Return to bug 15752