Module: check_mk
Branch: master
Commit: fa456fabd39e2f41afdebddb7587f27db08a9876
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa456fabd39e2f…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Mon Mar 6 15:34:30 2017 +0100
Combined graphs: Limiting display of combined graph button to host/service tables
---
web/htdocs/views.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 384f3a7..0f31676 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1804,7 +1804,9 @@ def render_view(view, rows, datasource, group_painters, painters,
# Show link to availability
datasource["table"] in [ "hosts",
"services" ] or "aggr" in datasource["infos"],
# Show link to combined graphs
- "host" in datasource["infos"] or
"service" in datasource["infos"])
+ ("host" in datasource["infos"] or
"service" in datasource["infos"]) and \
+ ("host" in datasource["table"] or
"service" in datasource["table"]),
+ )
# User errors in filters
html.show_user_errors()