NotificationQuery: Use query column service_description' instead of service'

refs #8613
This commit is contained in:
Johannes Meyer 2015-04-13 15:25:10 +02:00
parent 96954ea9a1
commit 15399d77ce
6 changed files with 8 additions and 8 deletions

View File

@ -61,7 +61,7 @@ class Monitoring_AlertsummaryController extends Controller
array(
'host_name',
'host_display_name',
'service',
'service_description',
'service_display_name',
'notification_output',
'notification_contact',
@ -479,7 +479,7 @@ class Monitoring_AlertsummaryController extends Controller
array(
'host_name',
'host_display_name',
'service',
'service_description',
'service_display_name',
'notification_output',
'notification_contact',

View File

@ -326,7 +326,7 @@ class Monitoring_ListController extends Controller
$this->setAutorefreshInterval(15);
$query = $this->backend->select()->from('notification', array(
'host_name',
'service',
'service_description',
'notification_output',
'notification_contact',
'notification_start_time',

View File

@ -157,7 +157,7 @@ class Monitoring_ShowController extends Controller
$notifications = $this->backend->select()->from('notification', array(
'host_name',
'service',
'service_description',
'notification_output',
'notification_contact',
'notification_start_time',

View File

@ -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 {
@ -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

View File

@ -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',

View File

@ -14,7 +14,7 @@ class Notification extends DataView
{
return array(
'host_name',
'service',
'service_description',
'notification_state',
'notification_start_time',
'notification_contact',