Skip to content

Commit

Permalink
NotificationQuery: Use query column `service_description' instead of …
Browse files Browse the repository at this point in the history
…`service'

refs #8613
  • Loading branch information
Johannes Meyer committed Apr 13, 2015
1 parent 96954ea commit 15399d7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Expand Up @@ -61,7 +61,7 @@ public function indexAction()
array(
'host_name',
'host_display_name',
'service',
'service_description',
'service_display_name',
'notification_output',
'notification_contact',
Expand Down Expand Up @@ -479,7 +479,7 @@ private function createRecentAlerts()
array(
'host_name',
'host_display_name',
'service',
'service_description',
'service_display_name',
'notification_output',
'notification_contact',
Expand Down
Expand Up @@ -326,7 +326,7 @@ public function notificationsAction()
$this->setAutorefreshInterval(15);
$query = $this->backend->select()->from('notification', array(
'host_name',
'service',
'service_description',
'notification_output',
'notification_contact',
'notification_start_time',
Expand Down
Expand Up @@ -157,7 +157,7 @@ public function contactAction()

$notifications = $this->backend->select()->from('notification', array(
'host_name',
'service',
'service_description',
'notification_output',
'notification_contact',
'notification_start_time',
Expand Down
Expand Up @@ -24,7 +24,7 @@ use Icinga\Module\Monitoring\Object\Service;
<table data-base-target="_next" class="action">
<tbody>
<?php foreach ($notifications as $notification):
if (isset($notification->service)) {
if (isset($notification->service_description)) {
$isService = true;
$stateName = Service::getStateText($notification->notification_state);
} else {
Expand All @@ -44,7 +44,7 @@ use Icinga\Module\Monitoring\Object\Service;
<?php if ($isService): ?>
<?= $this->icon('service', $this->translate('Service')); ?>
<?= $this->link()->service(
$notification->service,
$notification->service_description,
$notification->service_display_name,
$notification->host_name,
$notification->host_display_name
Expand Down
Expand Up @@ -14,7 +14,7 @@ class NotificationQuery extends IdoQuery
),
'objects' => array(
'host_name' => 'o.name1',
'service' => 'o.name2'
'service_description' => 'o.name2'
),
'contact' => array(
'notification_contact' => 'c_o.name1',
Expand Down
Expand Up @@ -14,7 +14,7 @@ public function getColumns()
{
return array(
'host_name',
'service',
'service_description',
'notification_state',
'notification_start_time',
'notification_contact',
Expand Down

0 comments on commit 15399d7

Please sign in to comment.