[Koha-patches] [PATCH] Bug 6061 - C4::Context clearing up system preference on update

Alex Arnaud alex.arnaud at biblibre.com
Tue Apr 5 14:29:28 CEST 2011


---
 C4/Context.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Context.pm b/C4/Context.pm
index 484d4e1..cbafad8 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -521,7 +521,7 @@ sub set_preference {
     my $type = $dbh->selectrow_array( "SELECT type FROM systempreferences WHERE variable = ?", {}, $var );
 
     $value = 0 if ( $type && $type eq 'YesNo' && $value eq '' );
-
+    clear_syspref_cache;
     my $sth = $dbh->prepare( "
       INSERT INTO systempreferences
         ( variable, value )
-- 
1.6.3.3



More information about the Koha-patches mailing list