Bugzilla – Attachment 167386 Details for
Bug 36367
Remove context stack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36367: Set to undef when unsetting
Bug-36367-Set-to-undef-when-unsetting.patch (text/plain), 815 bytes, created by
Martin Renvoize (ashimema)
on 2024-06-04 12:11:04 UTC
(
hide
)
Description:
Bug 36367: Set to undef when unsetting
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-06-04 12:11:04 UTC
Size:
815 bytes
patch
obsolete
>From 135338e4a120b715b8d8a06bdada83f2d7815b52 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Mar 2024 08:51:06 +0100 >Subject: [PATCH] Bug 36367: Set to undef when unsetting > >We usually test if C4::Context->userenv, so we need to undef when >unsetting, not {} (evaluated true) > >Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Context.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 8366148b516..8d49feda7c4 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -703,7 +703,7 @@ Destroys user environment variables. > > sub unset_userenv > { >- $context->{userenv} = {}; >+ $context->{userenv} = undef; > } > > >-- >2.45.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 36367
:
163500
|
163501
|
163502
|
163503
|
163504
|
163505
|
163506
|
163507
|
163508
|
165115
|
165116
|
165117
|
165118
|
165119
|
165120
|
165121
|
165122
|
165123
|
165124
|
165125
|
165126
|
167380
|
167381
|
167382
|
167383
|
167384
|
167385
| 167386 |
167387
|
167388
|
167389
|
167390
|
167391