summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-07-28 22:04:54 +0000
committermark <mark>2011-07-28 22:04:54 +0000
commit1b0cab3641a1cc3d497cbe4502dc3b33b13af74d (patch)
treec4fac819ed7a46edf606e91777a02447b206e6fc
parent18db2b641feada9d073de97a918b9a84b5a9729d (diff)
fix spurious RT error when not changing language
-rw-r--r--httemplate/pref/pref-process.html6
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>