Bugzilla – Attachment 193516 Details for
Bug 41895
Introduce Koha::Context::UserEnv to reduce circ deps problem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41895: Fix if no user defined
375fa71.patch (text/plain), 879 bytes, created by
Jonathan Druart
on 2026-02-20 10:42:23 UTC
(
hide
)
Description:
Bug 41895: Fix if no user defined
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-02-20 10:42:23 UTC
Size:
879 bytes
patch
obsolete
>From 375fa710a8a14430107c00cd5e1a7f5933607465 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 20 Feb 2026 11:41:16 +0100 >Subject: [PATCH] Bug 41895: Fix if no user defined > >--- > C4/Context.pm | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 5da92e83f9a..27525a77b6c 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -21,8 +21,6 @@ use Modern::Perl; > > use vars qw($AUTOLOAD $context); > >-our $REQUEST_ENV; >- > BEGIN { > if ( $ENV{'HTTP_USER_AGENT'} ) { # Only hit when plack is not enabled > >@@ -649,7 +647,7 @@ Retrieves a hash for user environment variables. > =cut > > sub userenv { >- return Koha::Context::UserEnv->get_all(); >+ return Koha::Context::UserEnv->get_all() if Koha::Context::UserEnv->exists(); > } > > =head2 set_userenv_from_session >-- >2.43.0 >
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 41895
:
193511
|
193516
|
193519