ListController: Fix contactgroup sorting

This commit is contained in:
Johannes Meyer 2015-06-15 14:15:51 +02:00
parent b8efe314a0
commit 2fceac9771
1 changed files with 5 additions and 5 deletions

View File

@ -392,6 +392,11 @@ class Monitoring_ListController extends Controller
));
$this->filterQuery($query);
$this->setupSortControl(array(
'contactgroup_name' => $this->translate('Contactgroup Name'),
'contactgroup_alias' => $this->translate('Contactgroup Alias')
), $query);
// Fetch and prepare all contact groups:
$contactgroups = $query->getQuery()->fetchAll();
$groupData = array();
@ -406,11 +411,6 @@ class Monitoring_ListController extends Controller
}
// TODO: Find a better naming
$this->view->groupData = $groupData;
$this->setupSortControl(array(
'contactgroup_name' => $this->translate('Contactgroup Name'),
'contactgroup_alias' => $this->translate('Contactgroup Alias')
), $query);
}
public function commentsAction()