Lines 1032-1038
is not passed.
Link Here
|
1032 |
sub pickup_locations { |
1032 |
sub pickup_locations { |
1033 |
my ( $self, $params ) = @_; |
1033 |
my ( $self, $params ) = @_; |
1034 |
|
1034 |
|
1035 |
return Koha::Libraries->search( { branchcode => $self->holdingbranch } ) if C4::Context->preference("IndependentBranches") && !C4::Context->IsSuperLibrarian(); |
1035 |
if ( C4::Context->preference("IndependentBranches") |
|
|
1036 |
and !C4::Context->preference("canreservefromotherbranches") ) |
1037 |
{ |
1038 |
my $userenv = C4::Context->userenv; |
1039 |
unless ( C4::Context->IsSuperLibrarian ) { |
1040 |
return Koha::Libraries->new()->empty if ( $self->homebranch ne $userenv->{branch} ); |
1041 |
return Koha::Libraries->search( { branchcode => $self->homebranch } ); |
1042 |
} |
1043 |
} |
1036 |
|
1044 |
|
1037 |
Koha::Exceptions::MissingParameter->throw( parameter => 'patron' ) |
1045 |
Koha::Exceptions::MissingParameter->throw( parameter => 'patron' ) |
1038 |
unless exists $params->{patron}; |
1046 |
unless exists $params->{patron}; |
1039 |
- |
|
|