Bugzilla – Attachment 190622 Details for
Bug 41478
AutoILLBackendPriority - Unauthenticated request shows backend form if wrong captcha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41478: Render Standard form on OPAC if failed_captcha and AutoILLBackendPriority
Bug-41478-Render-Standard-form-on-OPAC-if-failedca.patch (text/plain), 1.16 KB, created by
Pedro Amorim
on 2025-12-18 13:27:52 UTC
(
hide
)
Description:
Bug 41478: Render Standard form on OPAC if failed_captcha and AutoILLBackendPriority
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-12-18 13:27:52 UTC
Size:
1.16 KB
patch
obsolete
>From 22b79a4ba9789549319c69877b0162a540688c9e Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Thu, 18 Dec 2025 12:48:24 +0000 >Subject: [PATCH] Bug 41478: Render Standard form on OPAC if failed_captcha and > AutoILLBackendPriority > >--- > Koha/ILL/Request.pm | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm >index 5e76fc5889e..777de51ce70 100644 >--- a/Koha/ILL/Request.pm >+++ b/Koha/ILL/Request.pm >@@ -1195,7 +1195,16 @@ sub expand_template { > # Set files to load > $params->{template} = $template_name; > $params->{opac_template} = $template_name; >+ } elsif ( $params->{error} >+ && $params->{status} eq 'failed_captcha' >+ && C4::Context->preference("AutoILLBackendPriority") ) >+ { >+ my $template_name = 'ill/backends/Standard/' . ( $params->{method} // q{} ) . '.inc'; > >+ # Set files to load >+ $params->{template} = $template_name; >+ $params->{opac_template} = $template_name; >+ $params->{stage} = 'form'; > } else { > my $plugin = $self->get_backend_plugin( $self->_backend->name ); > >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41478
: 190622 |
190623