Bugzilla – Attachment 192152 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
b591f43.patch (text/plain), 1.27 KB, created by
Lisette Scheer
on 2026-01-29 15:47:41 UTC
(
hide
)
Description:
Bug 41478: Render Standard form on OPAC if failed_captcha and AutoILLBackendPriority
Filename:
MIME Type:
Creator:
Lisette Scheer
Created:
2026-01-29 15:47:41 UTC
Size:
1.27 KB
patch
obsolete
>From b591f43cbb89e6cbfc317453630507fbcf7c825f 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 > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> >--- > Koha/ILL/Request.pm | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/Koha/ILL/Request.pm b/Koha/ILL/Request.pm >index 4a1c45d2555..c5a91ab887d 100644 >--- a/Koha/ILL/Request.pm >+++ b/Koha/ILL/Request.pm >@@ -1196,7 +1196,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
|
190890
|
190891
|
190947
|
190948
| 192152 |
192153