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( $this->setupSortControl(
array( array(
'timestamp' => 'Comment Timestamp', 'comment_timestamp' => 'Comment Timestamp',
'host' => 'Host / Service', 'host_name' => 'Host / Service',
'type' => 'Comment Type', 'comment_type' => 'Comment Type',
'expiration' => 'Expiration', 'comment_expiration_timestamp' => 'Expiration',
) )
); );
$this->handleFormatRequest($query); $this->handleFormatRequest($query);

View File

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