DowntimeQuery: Make query column `author' case-insensitive

refs #8613
This commit is contained in:
Johannes Meyer 2015-04-10 14:24:53 +02:00
parent 1c32d8ebe5
commit 0f0727491e
2 changed files with 6 additions and 2 deletions

View File

@ -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',

View File

@ -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');
}
}