Query\*notificationQuery: add missing host_alias

Fixes an Exception when searching for a specific alias (as offered in
the filter form)
This commit is contained in:
Thomas Gelf 2020-04-22 10:00:39 +02:00 committed by Johannes Meyer
parent d585a37641
commit bdea1bfd47
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,8 @@ class HostnotificationQuery extends IdoQuery
'hostgroup_name' => 'hgo.name1'
),
'hosts' => array(
'host_display_name' => 'h.display_name COLLATE latin1_general_ci'
'host_display_name' => 'h.display_name COLLATE latin1_general_ci',
'host_alias' => 'h.alias COLLATE latin1_general_ci',
),
'history' => array(
'output' => null,

View File

@ -47,7 +47,8 @@ class ServicenotificationQuery extends IdoQuery
'hostgroup_alias' => 'hg.alias COLLATE latin1_general_ci',
),
'hosts' => array(
'host_display_name' => 'h.display_name COLLATE latin1_general_ci'
'host_display_name' => 'h.display_name COLLATE latin1_general_ci',
'host_alias' => 'h.alias COLLATE latin1_general_ci',
),
'instances' => array(
'instance_name' => 'i.instance_name'