Bugzilla – Attachment 134673 Details for
Bug 30702
Remove Context L785 warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30702: Fix Context.pm L785 warning on sessionID
Bug-30702-Fix-Contextpm-L785-warning-on-sessionID.patch (text/plain), 1004 bytes, created by
Marcel de Rooy
on 2022-05-06 07:17:34 UTC
(
hide
)
Description:
Bug 30702: Fix Context.pm L785 warning on sessionID
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-05-06 07:17:34 UTC
Size:
1004 bytes
patch
obsolete
>From 9be41900b1668925e3b28de66520f02e738df274 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 6 May 2022 07:09:34 +0000 >Subject: [PATCH] Bug 30702: Fix Context.pm L785 warning on sessionID >Content-Type: text/plain; charset=utf-8 > >Trivial fix. Before working on bug 29954. > >Test plan: >Run a few tests like t/Context.t, t/db_dependent/Auth.t and >t/db_dependent/Circulation.t. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Context.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index b42f933b08..8cb9bdefe7 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -782,7 +782,7 @@ Destroys the hash for activeuser user environment variables. > sub _unset_userenv > { > my ($sessionID)= @_; >- undef $context->{"activeuser"} if ($context->{"activeuser"} eq $sessionID); >+ undef $context->{activeuser} if $sessionID && $context->{activeuser} && $context->{activeuser} eq $sessionID; > } > > >-- >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 30702
:
134673
|
134712