From 19255c9163784a08575e9c82ddf0da59beb7510a Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 8 Jun 2020 09:12:27 +0200 Subject: [PATCH] Check $view->compact instead of view URL param Starting with Web version 2.8.0 the view=compact URL param has been deprecated and removed. Before, it was used to set a certain view to compact mode. We use the showCompact URL paramater for that now. Note that this parameter has been there forever, so this change is backwards compatible. See https://github.com/Icinga/icingaweb2/pull/4164 for details. --- library/Director/Web/Controller/ActionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Web/Controller/ActionController.php b/library/Director/Web/Controller/ActionController.php index dccc6dc89..fb9384575 100644 --- a/library/Director/Web/Controller/ActionController.php +++ b/library/Director/Web/Controller/ActionController.php @@ -206,7 +206,7 @@ public function postDispatch() $viewRenderer = new SimpleViewRenderer(); $viewRenderer->replaceZendViewRenderer(); $this->view = $viewRenderer->view; - if ($this->getOriginalUrl()->getParam('view') === 'compact') { + if ($this->view->compact) { if ($this->view->controls) { $this->controls()->getAttributes()->add('style', 'display: none;'); }