Module: check_mk
Branch: master
Commit: b6c61a7d2675d03dff78ef00564011edf1fe38f4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b6c61a7d2675d0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 8 16:01:39 2013 +0100
New filter for host_contact and service_contact
---
ChangeLog | 1 +
web/plugins/views/filters.py | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 53d0026..e161bc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -80,6 +80,7 @@
* FIX: Dashboard: Fixed wrong display options in links after data reloads
* FIX: Fixed "remove all downtimes" button in views when no downtimes to be
deleted
* FIX: Services in hosttables now use the service name as header (if no custom title
set)
+ * New filter for host_contact and service_contact
WATO:
* FIX: Fixed generated manual check definitions for checks without items
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index 3415559..29ce137 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -157,6 +157,11 @@ declare_filter(204, FilterGroupCombo("service",
_("Servicegroup"),
declare_filter(205, FilterGroupCombo("service", _("Servicegroup
(enforced)"), True), _("Dropdown list, selection of service group is
<b>enforced</b>"))
declare_filter(106, FilterGroupCombo("host_contact", _("Host
Contactgroup"), False), _("Optional selection of host contact group
group"))
declare_filter(206, FilterGroupCombo("service_contact", _("Service
Contactgroup"), False), _("Optional selection of service contact group
group"))
+
+declare_filter(107, FilterText("host_ctc", _("Host Contact"),
"host", "host_contacts", "host_ctc", ">="))
+declare_filter(207, FilterText("service_ctc", _("Service Contact"),
"service", "service_contacts", "service_ctc",
">="))
+
+
# Livestatus still misses "contact_groups" column.
# declare_filter(FilterGroupCombo("contact"))