Bugzilla – Attachment 166223 Details for
Bug 36793
Local preferences should not stay in the cache when they are deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36793: Fix case of $var in Context->delete_preference
Bug-36793-Fix-case-of-var-in-Context-deleteprefere.patch (text/plain), 1.08 KB, created by
Marcel de Rooy
on 2024-05-06 12:56:48 UTC
(
hide
)
Description:
Bug 36793: Fix case of $var in Context->delete_preference
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-05-06 12:56:48 UTC
Size:
1.08 KB
patch
obsolete
>From a3eafae374782b7e5750b7eebf6b05ccd1d83bc2 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 6 May 2024 12:28:45 +0000 >Subject: [PATCH] Bug 36793: Fix case of $var in Context->delete_preference >Content-Type: text/plain; charset=utf-8 > >This only applies to 'local' preferences. > >Test plan (first without this patch): >Add a local pref. Delete it. Ask value on commandline with: >* perl -MC4::Context -e"print C4::Context->preference('YOUR_PREF')" >* Did you replace YOUR_PREF :) > >Now repeat with this patch. And verify fix (no value now). > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Context.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 0169b10f85..98be1b06eb 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -486,6 +486,7 @@ was no syspref of the name. > sub delete_preference { > my ( $self, $var ) = @_; > >+ $var = lc $var; > if ( Koha::Config::SysPrefs->find( $var )->delete ) { > if ( $use_syspref_cache ) { > my $syspref_cache = Koha::Caches->get_instance('syspref'); >-- >2.30.2
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 36793
:
166222
|
166223
|
166753
|
166754