Bugzilla – Attachment 3822 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]
Patch
0001-Bug-6132-preference-were-case-sensitive.patch (text/plain), 961 bytes, created by
Julian Maurice
on 2011-04-08 08:03:59 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2011-04-08 08:03:59 UTC
Size:
961 bytes
patch
obsolete
>From 1ca1dc27b1d3603354974dc4ecb7399ba2f7b16d Mon Sep 17 00:00:00 2001 >From: Henri-Damien LAURENT <henridamien.laurent@biblibre.com> >Date: Thu, 3 Mar 2011 12:02:38 +0100 >Subject: [PATCH] Bug 6132: preference were case sensitive. > >--- > C4/Context.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 484d4e1..49beb87 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -464,6 +464,7 @@ sub preference { > my $self = shift; > my $var = shift; # The system preference to return > >+ $var = lc($var); > if (exists $sysprefs{$var}) { > return $sysprefs{$var}; > } >@@ -474,7 +475,7 @@ sub preference { > my $sql = <<'END_SQL'; > SELECT value > FROM systempreferences >- WHERE variable=? >+ WHERE LOWER(variable)=? > LIMIT 1 > END_SQL > $sysprefs{$var} = $dbh->selectrow_array( $sql, {}, $var ); >-- >1.7.4.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 6132
:
3822
|
6529
|
6558
|
7009
|
7010
|
7019
|
7020