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

(-)a/Koha/Item.pm (-2 / +3 lines)
Lines 27-32 use Koha::DateUtils qw( dt_from_string ); Link Here
27
27
28
use C4::Context;
28
use C4::Context;
29
use C4::Circulation;
29
use C4::Circulation;
30
use C4::Reserves;
30
use Koha::Checkouts;
31
use Koha::Checkouts;
31
use Koha::IssuingRules;
32
use Koha::IssuingRules;
32
use Koha::Item::Transfer::Limits;
33
use Koha::Item::Transfer::Limits;
Lines 312-318 sub pickup_locations { Link Here
312
    my $patron = $params->{patron};
313
    my $patron = $params->{patron};
313
314
314
    my $circ_control_branch =
315
    my $circ_control_branch =
315
      C4::Circulation::_GetCircControlBranch( $self->unblessed(), $patron );
316
      C4::Reserves::GetReservesControlBranch( $self->unblessed(), $patron->unblessed );
316
    my $branchitemrule =
317
    my $branchitemrule =
317
      C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype );
318
      C4::Circulation::GetBranchItemRule( $circ_control_branch, $self->itype );
318
319
Lines 347-352 sub pickup_locations { Link Here
347
            push @pickup_locations, $library->unblessed;
348
            push @pickup_locations, $library->unblessed;
348
        }
349
        }
349
    }
350
    }
351
350
    return wantarray ? @pickup_locations : \@pickup_locations;
352
    return wantarray ? @pickup_locations : \@pickup_locations;
351
}
353
}
352
354
353
- 

Return to bug 22284