Module: check_mk
Branch: master
Commit: 4066fd75bed1a584bf796864cd5ff4039b2111f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4066fd75bed1a5…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Oct 30 11:52:53 2015 +0100
#1299 FIX BI: Fixed recently introduced bug when editing BI Rules
The BI edit has always overwritten the last rule with the information from the rule before
when editing rules in series.
---
.werks/1299 | 11 +++++++++++
ChangeLog | 3 ++-
web/htdocs/wato.py | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/1299 b/.werks/1299
new file mode 100644
index 0000000..bc56de9
--- /dev/null
+++ b/.werks/1299
@@ -0,0 +1,11 @@
+Title: BI: Fixed recently introduced bug when editing BI Rules
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1446202185
+
+The BI edit has always overwritten the last rule with the information from the rule
before when editing rules in series.
+
diff --git a/ChangeLog b/ChangeLog
index fc334c7..bf984d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -48,8 +48,9 @@
WATO:
* 2666 FIX: Fix search for global configuration variables: ignore case now
* 2715 FIX: Fixed visibility of BI aggregations in editor
- * 1298 FIX: Fixed broken WebAPI
* 2716 FIX: Fixed error reporting on disabled checks page in case of broken man
pages
+ * 1298 FIX: Fixed broken WebAPI...
+ * 1299 FIX: BI: Fixed recently introduced bug when editing BI Rules...
HW/SW-Inventory:
* 2436 NetApp monitoring: Now able to gather data for inventory...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2de4314..23e4e87 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17561,7 +17561,7 @@ def render_bi_rules(title, aggregations, aggregation_rules,
only_unused):
if not only_unused or refs == 0:
table.row()
table.cell(_("Actions"), css="buttons")
- edit_url = html.makeuri([("mode", "bi_edit_rule"),
("id", ruleid)])
+ edit_url = html.makeuri_contextless([("mode",
"bi_edit_rule"), ("id", ruleid)])
html.icon_button(edit_url, _("Edit this rule"), "edit")
if rule_refs == 0:
tree_url = html.makeuri([("mode", "bi_rule_tree"),
("id", ruleid)])