mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
monitoring/service grid: Set up the sort control for the pivot table instead of the service status query
refs #9333
This commit is contained in:
parent
1492218962
commit
d449ff661e
@ -591,16 +591,16 @@ class Monitoring_ListController extends Controller
|
|||||||
));
|
));
|
||||||
$this->filterQuery($query);
|
$this->filterQuery($query);
|
||||||
$this->applyRestriction('monitoring/filter/objects', $query);
|
$this->applyRestriction('monitoring/filter/objects', $query);
|
||||||
$this->setupSortControl(array(
|
|
||||||
'host_name' => $this->translate('Hostname'),
|
|
||||||
'service_description' => $this->translate('Service description')
|
|
||||||
), $query);
|
|
||||||
$pivot = $query->pivot(
|
$pivot = $query->pivot(
|
||||||
'service_description',
|
'service_description',
|
||||||
'host_name',
|
'host_name',
|
||||||
$problems ? Filter::where('service_problem', 1) : null,
|
$problems ? Filter::where('service_problem', 1) : null,
|
||||||
$problems ? Filter::where('service_problem', 1) : null
|
$problems ? Filter::where('service_problem', 1) : null
|
||||||
);
|
);
|
||||||
|
$this->setupSortControl(array(
|
||||||
|
'host_name' => $this->translate('Hostname'),
|
||||||
|
'service_description' => $this->translate('Service description')
|
||||||
|
), $pivot);
|
||||||
$this->view->pivot = $pivot;
|
$this->view->pivot = $pivot;
|
||||||
$this->view->horizontalPaginator = $pivot->paginateXAxis();
|
$this->view->horizontalPaginator = $pivot->paginateXAxis();
|
||||||
$this->view->verticalPaginator = $pivot->paginateYAxis();
|
$this->view->verticalPaginator = $pivot->paginateYAxis();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user