Module: check_mk
Branch: master
Commit: ee7009a75f2754bdf93badb77841878cbb80e777
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ee7009a75f2754…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Oct 30 10:43:04 2014 +0100
#1430 FIX Clone group: Now displays correct alias name of cloned group
This applies to contact-, host- and servicegroups.
---
.werks/1430 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1430 b/.werks/1430
new file mode 100644
index 0000000..cbe5c0d
--- /dev/null
+++ b/.werks/1430
@@ -0,0 +1,10 @@
+Title: Clone group: Now displays correct alias name of cloned group
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.5i6
+Date: 1414662122
+Class: fix
+
+This applies to contact-, host- and servicegroups.
+
diff --git a/ChangeLog b/ChangeLog
index b3f253c..fc306d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -176,6 +176,7 @@
* 1119 FIX: WATO create rule: No longer raises an incorrect permission warning when
creating a new rule...
* 1121 FIX: Rule based notifications formular: No longer raises Request-Uri-Too-Large
errors...
* 1160 FIX: Fixed wrong named column in mkeventd rules
+ * 1430 FIX: Clone group: Now displays correct alias name of cloned group...
Notifications:
* 1151 Add variables (HOST/SERVICE)ACK(AUTHOR/COMMENT) to notification context...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index a53ca3d..38f809e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7974,7 +7974,7 @@ def mode_edit_group(phase, what):
alias = groups.get(name, {}).get('alias', '')
if not alias:
if clone_group:
- alias = groups.get(clone_group, "")
+ alias = groups.get(clone_group, {}).get('alias', '')
else:
alias = name
html.text_input("alias", alias)