Fix grouping error when selecting the notification id

This commit is contained in:
Eric Lippmann 2019-07-26 16:48:22 +02:00
parent 98388c4346
commit 227cb2c512
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,6 @@ class HostnotificationQuery extends IdoQuery
'host_display_name' => 'h.display_name COLLATE latin1_general_ci'
),
'history' => array(
'id' => 'hn.notification_id',
'output' => null,
'state' => 'hn.state',
'timestamp' => 'UNIX_TIMESTAMP(hn.start_time)',
@ -54,6 +53,7 @@ class HostnotificationQuery extends IdoQuery
'instance_name' => 'i.instance_name'
),
'notifications' => array(
'id' => 'hn.notification_id',
'host' => 'ho.name1 COLLATE latin1_general_ci',
'host_name' => 'ho.name1',
'notification_output' => 'hn.output',

View File

@ -26,7 +26,6 @@ class ServicenotificationQuery extends IdoQuery
'notification_contact_name' => 'co.name1'
),
'history' => array(
'id' => 'sn.notification_id',
'output' => null,
'state' => 'sn.state',
'timestamp' => 'UNIX_TIMESTAMP(sn.start_time)',
@ -54,6 +53,7 @@ class ServicenotificationQuery extends IdoQuery
'instance_name' => 'i.instance_name'
),
'notifications' => array(
'id' => 'sn.notification_id',
'host' => 'so.name1 COLLATE latin1_general_ci',
'host_name' => 'so.name1',
'notification_output' => 'sn.output',