Module: check_mk
Branch: master
Commit: 35b94d80c963afc997a9da837cc7de16af357324
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=35b94d80c963af…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jun 28 09:45:23 2012 +0200
FIX: fixed duplicated settings in WATO when using localisation
---
ChangeLog | 2 ++
web/htdocs/wato.py | 7 ++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 73175c1..4af6f75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,8 @@
* Show number of rows and number of selected rows in header line
(also for WATO hosts table)
* FIX: fix problem in showing exceptions (due to help function)
+ * FIX: fixed several localization problems in view/command processing
+ * FIX: fixed duplicated settings in WATO when using localisation
WATO:
* Main menu of ruleeditor (Host & Service Parameters) now has
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d352d4b..5419cca 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5374,9 +5374,6 @@ def mode_edit_configvar(phase):
html.hidden_fields()
html.end_form()
-g_configvars = {}
-g_configvar_groups = {}
-
# domain is one of "check_mk", "multisite" or "nagios"
def register_configvar(group, varname, valuespec, domain="check_mk",
need_restart=False, allow_reset=True):
g_configvar_groups.setdefault(group, []).append((domain, varname, valuespec))
@@ -11379,6 +11376,10 @@ def load_plugins():
user_attributes = []
user_attribute = {}
+ global g_configvars, g_configvar_groups
+ g_configvars = {}
+ g_configvar_groups = {}
+
global g_rulegroups, g_rulespecs, g_rulespec_group, g_rulespec_groups
g_rulegroups = {}
g_rulespecs = {}