diff --git a/application/views/scripts/joystickPagination.phtml b/application/views/scripts/joystickPagination.phtml index ae3e157bb..a8c24c9f6 100644 --- a/application/views/scripts/joystickPagination.phtml +++ b/application/views/scripts/joystickPagination.phtml @@ -7,7 +7,7 @@ $xAxisPages = $xAxisPaginator->getPages('all'); $yAxisPages = $yAxisPaginator->getPages('all'); $flipUrl = Url::fromRequest(); -if ($flipUrl->hasParam('flipped')) { +if ($flipUrl->getParam('flipped')) { $flipUrl->remove('flipped'); } else { $flipUrl->setParam('flipped'); diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 900062764..90d1dcf99 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -589,7 +589,7 @@ class ListController extends Controller $this->applyRestriction('monitoring/filter/objects', $query); $this->filterQuery($query); $filter = (bool) $this->params->shift('problems', false) ? Filter::where('service_problem', 1) : null; - if ($this->params->has('flipped')) { + if ($this->params->get('flipped', false)) { $pivot = $query ->pivot( 'host_name', @@ -619,7 +619,7 @@ class ListController extends Controller list($pivotData, $pivotHeader) = $pivot->toArray(); $this->view->pivotData = $pivotData; $this->view->pivotHeader = $pivotHeader; - if ($this->params->get('flipped')) { + if ($this->params->get('flipped', false)) { $this->render('servicegrid-flipped'); } }