Bugzilla – Attachment 132929 Details for
Bug 30426
suggestion service missing Auth and Output imports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30426: Add missing C4::Auth and C4::Output imports
Bug-30426-Add-missing-C4Auth-and-C4Output-imports.patch (text/plain), 1.28 KB, created by
Owen Leonard
on 2022-04-04 11:36:55 UTC
(
hide
)
Description:
Bug 30426: Add missing C4::Auth and C4::Output imports
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-04-04 11:36:55 UTC
Size:
1.28 KB
patch
obsolete
>From 3954859cdfd8da8538200169613ad819f7f15cd1 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Thu, 31 Mar 2022 23:02:35 +0000 >Subject: [PATCH] Bug 30426: Add missing C4::Auth and C4::Output imports > >This patch adds missing function imports for C4::Auth and C4::Output >in the opac/svc/suggestion script. > >Test plan: > >1. Go to http://localhost:8081/cgi-bin/koha/admin/didyoumean.pl >2. Turn on some plugins >3. Go to http://localhost:8080/cgi-bin/koha/opac-search.pl?idx=&q=test&weight_search=1 >4. Note in your browser's Network tab that the call to > http://localhost:8080/cgi-bin/koha/svc/suggestion?render=stub&q=test > generates a 200 response instead of a 500 error > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > opac/svc/suggestion | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/svc/suggestion b/opac/svc/suggestion >index 04b0655b34..0f8cd5d0d4 100755 >--- a/opac/svc/suggestion >+++ b/opac/svc/suggestion >@@ -53,9 +53,9 @@ Number of suggestions to display. Defaults to 4 in stub mode, 20 otherwise. > > use Modern::Perl; > >-use C4::Auth; >+use C4::Auth qw( get_template_and_user ); > use C4::Context; >-use C4::Output; >+use C4::Output qw( output_html_with_http_headers ); > use CGI qw ( -utf8 ); > use JSON; > use Koha::SuggestionEngine; >-- >2.20.1
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 30426
:
132813
|
132929
|
132960