Great, sortControl is not alias-aware. Fix comment sort options
This commit is contained in:
parent
a270eb2270
commit
2c3da5969a
|
@ -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);
|
||||
|
|
|
@ -69,7 +69,7 @@ class Comment extends DataView
|
|||
'host_name' => array(
|
||||
'columns' => array(
|
||||
'host_name',
|
||||
'service_name'
|
||||
'service_description'
|
||||
),
|
||||
'order' => self::SORT_ASC
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue