diff --git a/modules/monitoring/application/views/scripts/show/contact.phtml b/modules/monitoring/application/views/scripts/show/contact.phtml
index 3f70ee6ce..027301c88 100644
--- a/modules/monitoring/application/views/scripts/show/contact.phtml
+++ b/modules/monitoring/application/views/scripts/show/contact.phtml
@@ -3,17 +3,16 @@
compact): ?>
= $this->tabs; ?>
+
= $this->translate('Contact details') ?>
+
= $this->translate('No such contact') ?>: = $contactName ?>
- = $this->translate('Contact details') ?>
-
-
diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php
index cddbc44c9..196c50cd2 100644
--- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php
+++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactQuery.php
@@ -148,7 +148,6 @@ class ContactQuery extends IdoQuery
*/
protected function joinHosts()
{
- $this->requireVirtualTable('services');
$this->select->joinLeft(
array('hc' => $this->prefix . 'host_contacts'),
'hc.contact_object_id = c.contact_object_id',
@@ -159,7 +158,7 @@ class ContactQuery extends IdoQuery
array()
)->joinLeft(
array('ho' => $this->prefix . 'objects'),
- '(ho.object_id = h.host_object_id OR ho.object_id = s.host_object_id) AND ho.is_active = 1',
+ 'ho.object_id = h.host_object_id AND ho.is_active = 1',
array()
);
}