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

(-)a/opac/sco/sco-main.pl (-3 / +2 lines)
Lines 138-146 my $branch = $issuer->{branchcode}; Link Here
138
my $confirm_required = 0;
138
my $confirm_required = 0;
139
my $return_only = 0;
139
my $return_only = 0;
140
140
141
if ( C4::Context->preference('BatchCheckouts') ) {
141
if ( C4::Context->preference('BatchCheckouts') and $patron ) {
142
    my @batch_category_codes = split ',', C4::Context->preference('BatchCheckoutsValidCategories');
142
    my @batch_category_codes = split ',', C4::Context->preference('BatchCheckoutsValidCategories');
143
    my $categorycode = $issuer->{categorycode};
143
    my $categorycode = $patron->categorycode;
144
    if ( $categorycode && grep { $_ eq $categorycode } @batch_category_codes ) {
144
    if ( $categorycode && grep { $_ eq $categorycode } @batch_category_codes ) {
145
        # do nothing - logged in patron is allowed to do batch checkouts
145
        # do nothing - logged in patron is allowed to do batch checkouts
146
    } else {
146
    } else {
147
- 

Return to bug 32256