From c4c5bcdd48449661afe1ad88df0e9b1ffaf51c59 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Thu, 28 Aug 2014 13:39:49 +0200 Subject: [PATCH 1/2] ContactQuery: Change timeperiod joins to joinLeft() refs #7020 --- .../views/scripts/list/contacts.phtml | 4 ++++ .../views/scripts/show/contact.phtml | 21 ++++++++++++------- .../Backend/Ido/Query/ContactQuery.php | 4 ++-- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index 9fc05de8e..e4647e95b 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -36,14 +36,18 @@ $contactHelper = $this->getHelper('ContactFlags');
+ contact_notify_service_timeperiod): ?>
: escape($contact->contact_notify_service_timeperiod) ?>
+ + contact_notify_host_timeperiod): ?>
: escape($contact->contact_notify_host_timeperiod) ?>
+
getHelper('ContactFlags'); -

translate('Commands'); ?>:

- + +

translate('Commands'); ?>:

+ + +

translate('Notifications'); ?>:

- render('list/notifications.phtml') ?> + + render('list/notifications.phtml') ?> + +

translate('No notifications for this contact'); ?>

+ translate('No such contact'); ?>: diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php index 89fa37fcd..467e40fc0 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php @@ -95,12 +95,12 @@ class ContactQuery extends IdoQuery protected function joinTimeperiods() { - $this->select->join( + $this->select->joinLeft( array('ht' => $this->prefix . 'timeperiods'), 'ht.timeperiod_object_id = c.host_timeperiod_object_id', array() ); - $this->select->join( + $this->select->joinLeft( array('st' => $this->prefix . 'timeperiods'), 'st.timeperiod_object_id = c.service_timeperiod_object_id', array() From 0a2b504db85a8be8609e17cad31eef346c82f995 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Thu, 28 Aug 2014 13:41:21 +0200 Subject: [PATCH 2/2] Gracatar: Pre sized with 60px because of display latency refs #7020 --- .../monitoring/application/views/scripts/list/contacts.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index e4647e95b..a31a79553 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -18,7 +18,7 @@ $contactHelper = $this->getHelper('ContactFlags'); } foreach ($contacts as $contact): ?>
- +