Module: check_mk
Branch: master
Commit: 2f936721fbb4b5b327c2e4a7ca6f4079368db35c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2f936721fbb4b5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jun 22 10:01:52 2011 +0200
Multisite: fix service columns in host tables
In special case where a host group filter is set
the service columns did not work
---
web/plugins/views/filters.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index 3213b94..2bd1d33 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -123,10 +123,7 @@ class FilterGroupCombo(Filter):
if current_value == None:
return "" # no {what}group exists!
- if self.what + "s" == infoname:
- col = "groups"
- else:
- col = self.what + "_groups"
+ col = self.what + "_groups"
if not self.enforce and html.var(self.htmlvars[1]):
negate = "!"
else:
Module: check_mk
Branch: master
Commit: c5b6a14f1193ea08a5692654fe8e365804f334f7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5b6a14f1193ea…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jun 20 20:29:47 2011 +0200
Dashboard: fixed dashlet positioning bug
---
web/htdocs/dashboard.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index 630c794..924f844 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -167,7 +167,9 @@ def ajax_resize():
n = []
for i in [0, 1]:
if self._data[i] < 0:
- n.append(size[i] - self._data[i] - 1)
+ # The following line had a bug that has been fixed thanks
+ # to Markus Lengler!
+ n.append(size[i] + self._data[i] - 1)
else:
n.append(self._data[i] - 1) # make begin from 0
return vec(n)
@@ -201,6 +203,7 @@ def ajax_resize():
# Compute the absolute position, this time from 0 to rastersize-1
abs_position = rel_position.make_absolute(rastersize)
+ file("/tmp/hirni", "a").write("D: %s: Rastersize: %s, rel: %s, Pos: %s\n" % (dashlet.get("title"), rastersize, rel_position, abs_position))
# The size in raster-elements. A 0 for a dimension means growth. No negative values here.
size = vec(dashlet["size"])