From a4a590f4b5969a9f8f334316a77ccc0198325cc2 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 17 Jan 2025 11:02:56 -0100 Subject: [PATCH] Bug 36197: (QA follow-up): Pass the filtered OPAC backends to OPAC template The list of backends in the dropdown in this page: http://localhost:8080/cgi-bin/koha/opac-illrequests.pl?op=create If unauthenticated is enabled, this is listing all backends, instead of making use of opac_available_backends. Signed-off-by: Tomas Cohen Arazi --- opac/opac-illrequests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-illrequests.pl b/opac/opac-illrequests.pl index 3e5e2e1582b..ad7ef34c8f3 100755 --- a/opac/opac-illrequests.pl +++ b/opac/opac-illrequests.pl @@ -117,7 +117,7 @@ if ( $op eq 'list' ) { } elsif ( $op eq 'cud-create' ) { if ( !$params->{backend} ) { my $req = Koha::ILL::Request->new; - $template->param( backends => $req->available_backends ); + $template->param( backends => $backends ); } else { $params->{backend} = 'Standard' if $params->{backend} eq 'FreeForm'; my $request = Koha::ILL::Request->new->load_backend( $params->{backend} ); -- 2.49.0