Bug 20639: (follow-up) Fix population of backends
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Thu, 27 Sep 2018 10:44:27 +0000 (11:44 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 7 Mar 2019 20:51:11 +0000 (20:51 +0000)
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>

Koha/Illrequest.pm
opac/opac-illrequests.pl

index 98e4d70..94e24de 100644 (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;
 }
 
index 0ba9e0b..18453a4 100755 (executable)
@@ -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') {