diff options
author | mark <mark> | 2011-07-28 22:04:46 +0000 |
---|---|---|
committer | mark <mark> | 2011-07-28 22:04:46 +0000 |
commit | 33b96496e4e4c4f7b80a9aa30fb5a67ef7631080 (patch) | |
tree | 915daee8c1edf638cecaeb3f77d49b2f68cff68d | |
parent | 94db42b47263cf72ce248da59898f82a1364b0fa (diff) |
fix spurious RT error when not changing language
-rw-r--r-- | httemplate/pref/pref-process.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index 4ff878fd7..974b96dc2 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -80,7 +80,9 @@ if ( !$error and ($FS::TicketSystem::system || '') eq 'RT_Internal' ) { my $UserObj = FS::TicketSystem->session('')->{'CurrentUser'}->UserObj; # Bypass RT ModifySelf ACL $UserObj->CurrentUser( RT::SystemUser ); - my ($val, $msg) = $UserObj->SetLang($locale); - $error = $msg if !$val; + if ( $UserObj->Lang ne $locale ) { + my ($val, $msg) = $UserObj->SetLang($locale); + $error = $msg if !$val; + } } </%init> |