From 747c6f9b0b351554a72b087759680289c3c76bfc Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 22 Sep 2015 13:34:20 +0200 Subject: [PATCH] monitoring: Move instance_name from query to filter columns in the comment data view We don't select but filter for this column. --- modules/monitoring/library/Monitoring/DataView/Comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/DataView/Comment.php b/modules/monitoring/library/Monitoring/DataView/Comment.php index 5a34079f9..2dfddf60e 100644 --- a/modules/monitoring/library/Monitoring/DataView/Comment.php +++ b/modules/monitoring/library/Monitoring/DataView/Comment.php @@ -14,7 +14,6 @@ class Comment extends DataView public function getColumns() { return array( - 'instance_name', 'comment_author_name', 'comment_data', 'comment_expiration', @@ -40,6 +39,7 @@ class Comment extends DataView 'comment_author', 'host', 'host_alias', 'hostgroup', 'hostgroup_alias', 'hostgroup_name', + 'instance_name', 'service', 'servicegroup', 'servicegroup_alias', 'servicegroup_name' );