From 966a841dce509fbc8d637e310f6a0b2d3bdf6304 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 --- 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 7d5eb485d2..8bedf37f42 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.11.0