Groupsummary: remove invalid sort column discovery
This didn't result in a loop 'til now as it wasn't even used. The problem here is that the same View is used for tow differend things, this makes no sense. In the meantime removing that code fixes related problems.
This commit is contained in:
parent
510e38335e
commit
8fdf20fbf2
|
@ -99,7 +99,7 @@ class Monitoring_ChartController extends Controller
|
|||
'services_warning_unhandled',
|
||||
'services_pending'
|
||||
)
|
||||
)->getQuery()->fetchAll();
|
||||
)->order('hostgroup')->getQuery()->fetchAll();
|
||||
$this->view->height = intval($this->getParam('height', 500));
|
||||
$this->view->width = intval($this->getParam('width', 500));
|
||||
if (count($query) === 1) {
|
||||
|
@ -124,7 +124,7 @@ class Monitoring_ChartController extends Controller
|
|||
'services_warning_unhandled',
|
||||
'services_pending'
|
||||
)
|
||||
)->getQuery()->fetchAll();
|
||||
)->order('servicegroup')->getQuery()->fetchAll();
|
||||
$this->view->height = intval($this->getParam('height', 500));
|
||||
$this->view->width = intval($this->getParam('width', 500));
|
||||
|
||||
|
|
|
@ -37,20 +37,4 @@ class Groupsummary extends DataView
|
|||
'services_pending'
|
||||
);
|
||||
}
|
||||
|
||||
public function getSortRules()
|
||||
{
|
||||
if (in_array('servicegroup', $this->getQuery()->getColumns())) {
|
||||
return array(
|
||||
'servicegroup' => array(
|
||||
'order' => self::SORT_ASC
|
||||
)
|
||||
);
|
||||
}
|
||||
return array(
|
||||
'hostgroup' => array(
|
||||
'order' => self::SORT_ASC
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue