Module: check_mk
Branch: master
Commit: 7c994c9e584ddcb4c3a0c2f51050f1ccfde4178c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7c994c9e584ddc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 26 12:13:18 2016 +0100
#3246 FIX Fix link for editing a BI aggregation after coming back from the details of
another aggregation
The problem occurred if you tried to edit first one aggregation, then
directly after that another one.
---
.werks/3246 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/wato/bi.py | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/3246 b/.werks/3246
new file mode 100644
index 0000000..b15da17
--- /dev/null
+++ b/.werks/3246
@@ -0,0 +1,11 @@
+Title: Fix link for editing a BI aggregation after coming back from the details of
another aggregation
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1456485140
+
+The problem occurred if you tried to edit first one aggregation, then
+directly after that another one.
diff --git a/ChangeLog b/ChangeLog
index 3f96778..fde18f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -69,6 +69,7 @@
* 3180 FIX: Fix broken site specific globals and disabling of WATO in slave sites
* 3182 FIX: Fix bulk operations based on search result folder...
* 2998 FIX: Fixed broken WATO rules where content is dynamically loaded...
+ * 3246 FIX: Fix link for editing a BI aggregation after coming back from the details
of another aggregation...
Event Console:
* 3058 FIX: Event Console is now allowing non loadable MIB modules on startup...
diff --git a/web/plugins/wato/bi.py b/web/plugins/wato/bi.py
index 81333f6..cd38c59 100644
--- a/web/plugins/wato/bi.py
+++ b/web/plugins/wato/bi.py
@@ -996,7 +996,7 @@ class ModeBIAggregations(ModeBI):
for nr, aggregation in enumerate(self._pack["aggregations"]):
table.row()
table.cell(_("Actions"), css="buttons")
- edit_url = html.makeuri([("mode", "bi_edit_aggregation"),
("id", nr)])
+ edit_url = html.makeuri_contextless([("mode",
"bi_edit_aggregation"), ("id", nr), ("pack",
self._pack_id)])
html.icon_button(edit_url, _("Edit this aggregation"),
"edit")
if self.is_contact_for_pack():
delete_url = html.makeactionuri([("_del_aggr", nr)])