Module: check_mk
Branch: master
Commit: 077ec9b8bdfba5aef95472b1dc51b69ef97cd169
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=077ec9b8bdfba5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 24 14:30:47 2019 +0200
Fix label links in folded HW/SW inventory tree
Change-Id: I45aee6dbf9d23f862b8d9cc4e739a6beef45f071
---
cmk/gui/view_utils.py | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/cmk/gui/view_utils.py b/cmk/gui/view_utils.py
index c8de64b..bbaa15f 100644
--- a/cmk/gui/view_utils.py
+++ b/cmk/gui/view_utils.py
@@ -167,9 +167,11 @@ def _render_tag_group(tg_id, tag, object_type, with_link, label_type,
label_sour
else:
raise NotImplementedError()
- url = html.makeuri_contextless([
- ("filled_in", "filter"),
- ("search", "Search"),
- ("view_name", "searchhost" if object_type == "host"
else "searchsvc"),
- ] + type_filter_vars)
+ url = html.makeuri_contextless(
+ [
+ ("filled_in", "filter"),
+ ("search", "Search"),
+ ("view_name", "searchhost" if object_type ==
"host" else "searchsvc"),
+ ] + type_filter_vars,
+ filename="view.py")
return html.render_a(span, href=url)