Module: check_mk
Branch: master
Commit: b79eee3701c9b119ce845a0bf00659ddded3cfa9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b79eee3701c9b1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 4 15:16:45 2014 +0100
FIX Fix language jumping to German when saving user profiles
---
.werks/690 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/690 b/.werks/690
new file mode 100644
index 0000000..5bd5a60
--- /dev/null
+++ b/.werks/690
@@ -0,0 +1,9 @@
+Title: Fix language jumping to German when saving user profiles
+Level: 2
+Component: wato
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1391523357
+
+
diff --git a/ChangeLog b/ChangeLog
index 803b5ec..52f3e89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -252,6 +252,7 @@
* 0269 FIX: brocade_fcport: fixed problem on displaying check_parameters in WATO...
* 0271 FIX: Fixed sorting in duallist element (two lists with interchangable
elements)...
* 0131 FIX: Error rates for network interfaces can now be set smaller then 0.1 when
using Wato....
+ * 0690 FIX: Fix language jumping to German when saving user profiles
Notifications:
* 0362 sms: now searching PATH for sendsms and smssend commands...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f1edb20..acf36c8 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -13126,7 +13126,7 @@ def HostnameTranslation(**kwargs):
def select_language(user_language):
languages = [ l for l in get_languages() if not config.hide_language(l[0]) ]
- inactive = user_language != ''
+ inactive = not not user_language
if languages:
forms.section(_("Language"),