Module: check_mk
Branch: master
Commit: 3e7001c64308136418804d9eff604602d35eeaa4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3e7001c6430813…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 30 10:12:33 2015 +0100
#1883 FIX Fixed lossing service context when cloning a rule
---
.werks/1883 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 2 ++
3 files changed, 13 insertions(+)
diff --git a/.werks/1883 b/.werks/1883
new file mode 100644
index 0000000..6d3f48e
--- /dev/null
+++ b/.werks/1883
@@ -0,0 +1,10 @@
+Title: Fixed lossing service context when cloning a rule
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1422609138
+
+
diff --git a/ChangeLog b/ChangeLog
index ee3ea26..7872af5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -168,6 +168,7 @@
* 1816 FIX: Fixed garbled output on "rename host" result page
* 1879 FIX: Not showing "only show permitted hosts/services" option for
users not having "see all" permissions...
* 1922 FIX: Fix exception in saving of hosttags if hosttag has at least one auxiliary
tag
+ * 1883 FIX: Fixed lossing service context when cloning a rule
Notifications:
* 1662 notification plugin spectrum: finalized script. now able to handle host
notications
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 7c74f62..ad8d710 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -14441,6 +14441,8 @@ def rule_button(action, help=None, folder=None, rulenr=0):
vars.append(("rule_folder", html.var("rule_folder")))
if html.var("host"):
vars.append(("host", html.var("host")))
+ if html.var("item"):
+ vars.append(("item", html.var("item")))
url = make_action_link(vars)
html.icon_button(url, help, action)