mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
ListController: Fix contactgroup sorting
This commit is contained in:
parent
b8efe314a0
commit
2fceac9771
@ -392,6 +392,11 @@ class Monitoring_ListController extends Controller
|
|||||||
));
|
));
|
||||||
$this->filterQuery($query);
|
$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:
|
// Fetch and prepare all contact groups:
|
||||||
$contactgroups = $query->getQuery()->fetchAll();
|
$contactgroups = $query->getQuery()->fetchAll();
|
||||||
$groupData = array();
|
$groupData = array();
|
||||||
@ -406,11 +411,6 @@ class Monitoring_ListController extends Controller
|
|||||||
}
|
}
|
||||||
// TODO: Find a better naming
|
// TODO: Find a better naming
|
||||||
$this->view->groupData = $groupData;
|
$this->view->groupData = $groupData;
|
||||||
|
|
||||||
$this->setupSortControl(array(
|
|
||||||
'contactgroup_name' => $this->translate('Contactgroup Name'),
|
|
||||||
'contactgroup_alias' => $this->translate('Contactgroup Alias')
|
|
||||||
), $query);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function commentsAction()
|
public function commentsAction()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user