Bugzilla – Attachment 7009 Details for
Bug 6132
System preferences are case sensitive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Update sysprefs cache in set_preference
0001-Bug-6132-Update-sysprefs-cache-in-set_preference.patch (text/plain), 898 bytes, created by
Julian Maurice
on 2012-01-02 09:55:52 UTC
(
hide
)
Description:
Update sysprefs cache in set_preference
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-01-02 09:55:52 UTC
Size:
898 bytes
patch
obsolete
>From 155f10937b5a5df79c55170df6be42ad13ca640e Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 2 Jan 2012 10:45:55 +0100 >Subject: [PATCH 1/2] Bug 6132: Update sysprefs cache in set_preference > >--- > C4/Context.pm | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index c2ed85c..770973f 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -549,7 +549,7 @@ the sysprefs cache. > > sub set_preference { > my $self = shift; >- my $var = shift; >+ my $var = lc(shift); > my $value = shift; > > my $dbh = C4::Context->dbh or return 0; >@@ -565,7 +565,9 @@ sub set_preference { > ON DUPLICATE KEY UPDATE value = VALUES(value) > " ); > >- $sth->execute( $var, $value ); >+ if($sth->execute( $var, $value )) { >+ $sysprefs{$var} = $value; >+ } > $sth->finish; > } > >-- >1.7.7.3 >
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 6132
:
3822
|
6529
|
6558
|
7009
|
7010
|
7019
|
7020