Bug 20639: (follow-up) Fix population of backends

The OPAC view wasn't correctly restricting the display of backends when
the ILLOpacbackends preference was set.

See the test plan on comment 7

Signed-off-by: Niamh.Walker-Headon@it-tallaght.ie

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Andrew Isherwood 2018-09-27 11:44:27 +01:00 committed by Nick Clemens
parent ef6ad443a8
commit 6d3136c7e8
2 changed files with 3 additions and 3 deletions

View File

@ -578,8 +578,8 @@ Return a list of available backends.
=cut
sub available_backends {
my ( $self ) = @_;
my $backends = $self->_config->available_backends;
my ( $self, $reduced ) = @_;
my $backends = $self->_config->available_backends($reduced);
return $backends;
}

View File

@ -65,7 +65,7 @@ if ( $op eq 'list' ) {
my $req = Koha::Illrequest->new;
$template->param(
requests => $requests,
backends => $req->available_backends
backends => $backends
);
} elsif ( $op eq 'view') {