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 <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2025-01-17 11:02:56 -01:00 committed by Katrin Fischer
parent b05ac1b06b
commit ce3b8e0b0c
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -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} );