Bugzilla – Attachment 132813 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), 893 bytes, created by
David Cook
on 2022-03-31 23:04:04 UTC
(
hide
)
Description:
Bug 30426: Add missing C4::Auth and C4::Output imports
Filename:
MIME Type:
Creator:
David Cook
Created:
2022-03-31 23:04:04 UTC
Size:
893 bytes
patch
obsolete
>From d77386c916ad6ef5a5e9ae6a8cab717240332e9c 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. >--- > opac/svc/suggestion | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/svc/suggestion b/opac/svc/suggestion >index db08f14bcc..74311b3b0d 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.25.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