Reasonable sort default for downtimes, should be placed into DataView
This commit is contained in:
parent
ad6498900b
commit
d1dc4f10f7
|
@ -200,7 +200,7 @@ class Monitoring_ListController extends MonitoringController
|
|||
'title' => 'Downtimes',
|
||||
'url' => Url::fromPath('monitoring/list/downtimes')
|
||||
))->activate('downtimes');
|
||||
$query = DowntimeView::fromRequest($this->_request)->getQuery();
|
||||
$query = DowntimeView::fromRequest($this->_request)->getQuery()->order('downtime_is_in_effect', 'DESC')->order('downtime_scheduled_start_time', 'DESC');
|
||||
|
||||
$this->view->downtimes = $query->paginate();
|
||||
$this->setupSortControl(array(
|
||||
|
|
Loading…
Reference in New Issue