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

(-)a/circ/circulation.pl (-6 / +6 lines)
Lines 82-95 if (!C4::Context->userenv){ Link Here
82
    }
82
    }
83
}
83
}
84
84
85
if (C4::Context->preference("AutoSwitchPatron") ) {
85
my $barcodes = [];
86
    if (Koha::Patrons->search( { cardnumber => $query->param('barcode')} )->count() > 0) {
86
my $barcode =  $query->param('barcode');
87
        print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$query->param('barcode'));
87
88
if (C4::Context->preference("AutoSwitchPatron") && $barcode) {
89
    if (Koha::Patrons->search( { cardnumber => $barcode} )->count() > 0) {
90
        print $query->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=".$barcode);
88
    }
91
    }
89
}
92
}
90
93
91
my $barcodes = [];
92
my $barcode =  $query->param('barcode');
93
# Barcode given by user could be '0'
94
# Barcode given by user could be '0'
94
if ( $barcode || ( defined($barcode) && $barcode eq '0' ) ) {
95
if ( $barcode || ( defined($barcode) && $barcode eq '0' ) ) {
95
    $barcodes = [ $barcode ];
96
    $barcodes = [ $barcode ];
96
- 

Return to bug 15752