From 6d3136c7e893011bd7cdfd0b6415d20929b6a66b Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 27 Sep 2018 11:44:27 +0100 Subject: [PATCH] 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 Signed-off-by: Nick Clemens --- Koha/Illrequest.pm | 4 ++-- opac/opac-illrequests.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index 98e4d707d4..94e24debe5 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -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; } diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 0ba9e0bce3..18453a4260 100755 --- a/opac/opac-illrequests.pl +++ b/opac/opac-illrequests.pl @@ -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') { -- 2.39.5