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

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

Return to bug 15752