projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18db2b6
)
fix spurious RT error when not changing language
author
mark
<mark>
Thu, 28 Jul 2011 22:04:54 +0000
(22:04 +0000)
committer
mark
<mark>
Thu, 28 Jul 2011 22:04:54 +0000
(22:04 +0000)
httemplate/pref/pref-process.html
patch
|
blob
|
history
diff --git
a/httemplate/pref/pref-process.html
b/httemplate/pref/pref-process.html
index
4ff878f
..
974b96d
100644
(file)
--- 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>