Module: check_mk
Branch: master
Commit: 1d2a317bd21f5dd9d357b1c431d3d9aadd8441ee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1d2a317bd21f5d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 9 12:13:28 2016 +0100
3981 FIX Views: Fixed context button displaying depending on usage
---
.werks/3981 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/htmllib.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3981 b/.werks/3981
new file mode 100644
index 0000000..81b7eb6
--- /dev/null
+++ b/.werks/3981
@@ -0,0 +1,9 @@
+Title: Views: Fixed context button displaying depending on usage
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i2
+Date: 1478689988
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index d7d4c33..ff5aa66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -69,6 +69,7 @@
* 4046 FIX: Repaired html rendering....
* 3938 FIX: tactical overview: fixed wrong display of number of host/service
problems...
* 3980 FIX: Fixed possible flickering GUI when using Chrome and zooming the page
+ * 3981 FIX: Views: Fixed context button displaying depending on usage
WATO:
* 3915 User access times: New icon when never logged in; New column "last
seen"
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 29714d2..758df70 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -1112,7 +1112,7 @@ class HTMLCheck_MK(HTMLGenerator):
weights = counts.items()
weights.sort(cmp = lambda a,b: cmp(a[1], b[1]))
best = dict(weights[-bestof:])
- if id not in best:
+ if id_ not in best:
display="none"
self.context_button_hidden = True