Great, sortControl is not alias-aware. Fix comment sort options

This commit is contained in:
Thomas Gelf 2014-03-09 19:39:32 +01:00
parent a270eb2270
commit 2c3da5969a
2 changed files with 5 additions and 5 deletions

View File

@ -337,10 +337,10 @@ class Monitoring_ListController extends Controller
$this->setupSortControl(
array(
'timestamp' => 'Comment Timestamp',
'host' => 'Host / Service',
'type' => 'Comment Type',
'expiration' => 'Expiration',
'comment_timestamp' => 'Comment Timestamp',
'host_name' => 'Host / Service',
'comment_type' => 'Comment Type',
'comment_expiration_timestamp' => 'Expiration',
)
);
$this->handleFormatRequest($query);

View File

@ -69,7 +69,7 @@ class Comment extends DataView
'host_name' => array(
'columns' => array(
'host_name',
'service_name'
'service_description'
),
'order' => self::SORT_ASC
),