Module: check_mk
Branch: master
Commit: 0db3a2041945b24b6ad5baa23fe244ca295d7cbb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0db3a2041945b2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 11 09:12:23 2015 +0200
#2253 FIX Availability context button is now visible again for host- and servicegroups
---
.werks/2253 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/views.py | 6 ++----
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/.werks/2253 b/.werks/2253
new file mode 100644
index 0000000..5bb8ae1
--- /dev/null
+++ b/.werks/2253
@@ -0,0 +1,10 @@
+Title: Availability context button is now visible again for host- and servicegroups
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1431328321
+
+
diff --git a/ChangeLog b/ChangeLog
index 348cd5d..82eb071 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -431,6 +431,7 @@
* 2233 FIX: Fixed WATO folder view and Host Tags search with HTML Entity encoding...
* 2074 FIX: pnptemplate netapp_api_volume: fixed title
* 2251 FIX: Adding views to dashboards / reports is now respecing all set filters...
+ * 2253 FIX: Availability context button is now visible again for host- and
servicegroups
WATO:
* 1760 Added search form to manual checks page
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 8ab1507..7706710 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1166,10 +1166,8 @@ def render_view(view, rows, datasource, group_painters, painters,
row_count > 0 and command_form,
# Take into account: layout capabilities
can_display_checkboxes and not
view.get("force_checkboxes"), show_checkboxes,
- # Show link to availability. This exists only for plain hosts
- # and services table. The grouping tables have columns that
statehist
- # is missing. That way some of the filters might fail.
- datasource["table"] in [ "hosts",
"services", ] or "aggr" in datasource["infos"])
+ # Show link to availability
+ "host" in datasource["infos"] or
"service" in datasource["infos"] or "aggr" in
datasource["infos"])
# User errors in filters
html.show_user_errors()