ActionController: Fix that view variable `compact` is undefined

refs #4164
This commit is contained in:
Johannes Meyer 2020-06-08 09:25:50 +02:00
parent 14b276ff06
commit 62dd0b3f1e
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ class ActionController extends Zend_Controller_Action
$this->_helper->layout()->showFullscreen = $request->getUrl()->shift('showFullscreen'); $this->_helper->layout()->showFullscreen = $request->getUrl()->shift('showFullscreen');
$this->_helper->layout()->moduleName = $moduleName; $this->_helper->layout()->moduleName = $moduleName;
$this->view->compact = false;
if ($request->getUrl()->getParam('view') === 'compact') { if ($request->getUrl()->getParam('view') === 'compact') {
$request->getUrl()->remove('view'); $request->getUrl()->remove('view');
$this->view->compact = true; $this->view->compact = true;