From cddb68bffbe33470beb021a2fbd5256a829123cf Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 23 Nov 2014 20:07:30 +0100 Subject: [PATCH] ActionController: shift global parameters globally --- library/Icinga/Web/Controller/ActionController.php | 4 ++-- modules/monitoring/application/controllers/ListController.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index a41670159..400803dce 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -73,10 +73,10 @@ class ActionController extends Zend_Controller_Action $this->handlerBrowserWindows(); $this->view->translationDomain = 'icinga'; - $this->_helper->layout()->isIframe = $this->params->shift('isIframe'); + $this->_helper->layout()->isIframe = $request->getUrl()->shift('isIframe'); $this->_helper->layout()->moduleName = false; - if ($this->rerenderLayout = $this->params->shift('renderLayout')) { + if ($this->rerenderLayout = $request->getUrl()->shift('renderLayout')) { $this->xhrLayout = 'body'; } diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index 2f0c7b391..4f92a25b1 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -639,8 +639,8 @@ class Monitoring_ListController extends Controller { $editor = Widget::create('filterEditor') ->setQuery($query) - ->preserveParams('limit', 'sort', 'dir', 'format', 'view', 'backend', 'renderLayout', 'stateType', 'addColumns') - ->ignoreParams('page', 'objecttype', 'from', 'to', 'btn_submit', 'icon') + ->preserveParams('limit', 'sort', 'dir', 'format', 'view', 'backend', 'stateType', 'addColumns') + ->ignoreParams('page') ->handleRequest($this->getRequest()); $query->applyFilter($editor->getFilter());