From 97085164f92fecc22a823e6c305a660cc8339e05 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 --- 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 99b97bdbe4..4c84b651af 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -477,8 +477,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 329dc24792..5308c5ab4a 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.11.0