Browse Source

Bug 6132: Update sysprefs cache in set_preference

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
3.8.x
Julian Maurice 13 years ago
committed by Paul Poulain
parent
commit
b867d7d12a
  1. 6
      C4/Context.pm

6
C4/Context.pm

@ -514,7 +514,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;
@ -530,7 +530,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;
}

Loading…
Cancel
Save