Reasonable sort default for downtimes, should be placed into DataView

This commit is contained in:
Thomas Gelf 2014-02-21 10:42:41 +00:00
parent ad6498900b
commit d1dc4f10f7
1 changed files with 1 additions and 1 deletions

View File

@ -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(