From 0f0727491ed67650621dad7050708367918c207a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 10 Apr 2015 14:24:53 +0200 Subject: [PATCH] DowntimeQuery: Make query column `author' case-insensitive refs #8613 --- .../library/Monitoring/Backend/Ido/Query/DowntimeQuery.php | 2 +- modules/monitoring/library/Monitoring/DataView/Downtime.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php index a98b8e2c4..3f0d0293a 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php @@ -14,7 +14,7 @@ class DowntimeQuery extends IdoQuery protected $columnMap = array( 'downtime' => array( 'downtime_author_name' => 'sd.author_name', - 'author' => 'sd.author_name', + 'author' => 'sd.author_name COLLATE latin1_general_ci', 'downtime_comment' => 'sd.comment_data', 'downtime_entry_time' => 'UNIX_TIMESTAMP(sd.entry_time)', 'downtime_is_fixed' => 'sd.is_fixed', diff --git a/modules/monitoring/library/Monitoring/DataView/Downtime.php b/modules/monitoring/library/Monitoring/DataView/Downtime.php index 0b2b02491..04cf872db 100644 --- a/modules/monitoring/library/Monitoring/DataView/Downtime.php +++ b/modules/monitoring/library/Monitoring/DataView/Downtime.php @@ -15,7 +15,6 @@ class Downtime extends DataView return array( 'downtime_objecttype', 'downtime_author_name', - 'author', 'downtime_comment', 'downtime_entry_time', 'downtime_is_fixed', @@ -69,4 +68,9 @@ class Downtime extends DataView ) ); } + + public function getFilterColumns() + { + return array('author', 'host', 'service'); + } }