mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
Controller: Properly handle view compact requests
This commit is contained in:
parent
554b96cebe
commit
85b8f770ab
1 changed files with 1 additions and 2 deletions
|
|
@ -50,7 +50,6 @@ class Controller extends ModuleController
|
||||||
= $this->showFullscreen
|
= $this->showFullscreen
|
||||||
= (bool) $this->_helper->layout()->showFullscreen;
|
= (bool) $this->_helper->layout()->showFullscreen;
|
||||||
|
|
||||||
$this->view->compact = $this->params->get('view') === 'compact';
|
|
||||||
$this->setViewScript('default');
|
$this->setViewScript('default');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,7 +61,7 @@ class Controller extends ModuleController
|
||||||
if ($this->url === null) {
|
if ($this->url === null) {
|
||||||
$this->url = Url::fromPath(
|
$this->url = Url::fromPath(
|
||||||
$this->getRequest()->getUrl()->getPath()
|
$this->getRequest()->getUrl()->getPath()
|
||||||
)->setParams($this->params);
|
)->setParams($this->getRequest()->getUrl()->getParams());
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->url;
|
return $this->url;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue