From 21c76010d44f7a24ffabdebef62b3dccab6a355d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 9 Apr 2015 13:06:38 +0200 Subject: [PATCH] CommentQuery: Add `comment_author_name' as additional query column refs #8613 --- .../library/Monitoring/Backend/Ido/Query/CommentQuery.php | 1 + modules/monitoring/library/Monitoring/DataView/Comment.php | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php index 882a31ff6..eff3bc1e7 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/CommentQuery.php @@ -13,6 +13,7 @@ class CommentQuery extends IdoQuery 'comment_internal_id' => 'cm.internal_comment_id', 'comment_data' => 'cm.comment_data', 'comment_author' => 'cm.author_name COLLATE latin1_general_ci', + 'comment_author_name' => 'cm.author_name', 'comment_timestamp' => 'UNIX_TIMESTAMP(cm.comment_time)', 'comment_type' => "CASE cm.entry_type WHEN 1 THEN 'comment' WHEN 2 THEN 'downtime' WHEN 3 THEN 'flapping' WHEN 4 THEN 'ack' END", 'comment_is_persistent' => 'cm.is_persistent', diff --git a/modules/monitoring/library/Monitoring/DataView/Comment.php b/modules/monitoring/library/Monitoring/DataView/Comment.php index 57f7b85bd..c0e5370ff 100644 --- a/modules/monitoring/library/Monitoring/DataView/Comment.php +++ b/modules/monitoring/library/Monitoring/DataView/Comment.php @@ -18,6 +18,7 @@ class Comment extends DataView 'comment_internal_id', 'comment_data', 'comment_author', + 'comment_author_name', 'comment_timestamp', 'comment_type', 'comment_is_persistent',