[Patches] [PATCH] Bug 6132: preference were case sensitive.

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Sun Dec 4 17:00:04 NZDT 2011


From: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
Date: Thu, 3 Mar 2011 12:02:38 +0100
Subject: [PATCH] Bug 6132: preference were case sensitive.

Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
---
 C4/Context.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Context.pm b/C4/Context.pm
index 07b2b13..7581faa 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -463,7 +463,7 @@ my %sysprefs;
 
 sub preference {
     my $self = shift;
-    my $var  = shift;                          # The system preference to return
+    my $var  = lc(shift);                          # The system preference to return
 
     if (exists $sysprefs{$var}) {
         return $sysprefs{$var};
-- 
1.7.5.4


More information about the Patches mailing list