From a240e306ede8573da1a79c2eeb5d47261cfeffa9 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 3 Jun 2020 15:59:06 +0200 Subject: [PATCH] Preserve/Remove param `showCompact` instead of `view` --- library/Icinga/Web/Controller.php | 2 +- modules/monitoring/application/controllers/ListController.php | 2 +- .../monitoring/application/controllers/ServicesController.php | 2 +- .../monitoring/application/views/scripts/list/comments.phtml | 2 +- .../monitoring/application/views/scripts/list/contacts.phtml | 2 +- .../monitoring/application/views/scripts/list/downtimes.phtml | 2 +- .../monitoring/application/views/scripts/list/hostgroups.phtml | 2 +- modules/monitoring/application/views/scripts/list/hosts.phtml | 2 +- .../application/views/scripts/list/notifications.phtml | 2 +- .../application/views/scripts/list/servicegroups.phtml | 2 +- .../monitoring/application/views/scripts/list/services.phtml | 2 +- .../application/views/scripts/partials/event-history.phtml | 2 +- .../application/views/scripts/partials/show-more.phtml | 2 +- modules/monitoring/library/Monitoring/DataView/DataView.php | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/library/Icinga/Web/Controller.php b/library/Icinga/Web/Controller.php index 7409dfa7e..dba085a58 100644 --- a/library/Icinga/Web/Controller.php +++ b/library/Icinga/Web/Controller.php @@ -235,7 +235,7 @@ class Controller extends ModuleActionController 'sort', // setupSortControl() 'dir', // setupSortControl() 'backend', // Framework - 'view', // Framework + 'showCompact', // Framework '_dev' // Framework ); diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 1e6ce6db1..251a45506 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -355,7 +355,7 @@ class ListController extends Controller $this->view->form = $form; $this->params - ->remove('view') + ->remove('showCompact') ->remove('format'); $orientation = $this->params->shift('vertical', 0) ? 'vertical' : 'horizontal'; /* diff --git a/modules/monitoring/application/controllers/ServicesController.php b/modules/monitoring/application/controllers/ServicesController.php index 1d65de919..6c6559210 100644 --- a/modules/monitoring/application/controllers/ServicesController.php +++ b/modules/monitoring/application/controllers/ServicesController.php @@ -35,7 +35,7 @@ class ServicesController extends Controller $serviceList = new ServiceList($this->backend); $this->applyRestriction('monitoring/filter/objects', $serviceList); $serviceList->addFilter(Filter::fromQueryString( - (string) $this->params->without(array('service_problem', 'service_handled', 'view')) + (string) $this->params->without(array('service_problem', 'service_handled', 'showCompact')) )); $this->serviceList = $serviceList; $this->serviceList->setColumns(array( diff --git a/modules/monitoring/application/views/scripts/list/comments.phtml b/modules/monitoring/application/views/scripts/list/comments.phtml index 4941922a9..4ea24dfd3 100644 --- a/modules/monitoring/application/views/scripts/list/comments.phtml +++ b/modules/monitoring/application/views/scripts/list/comments.phtml @@ -43,7 +43,7 @@