From b375a4f6ccd5e5388eae0184505568cee36c102b Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Fri, 13 Feb 2015 16:21:19 +0100 Subject: [PATCH] Fix multiple renderLayout parameters in the url refs #7945 --- application/forms/AutoRefreshForm.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/forms/AutoRefreshForm.php b/application/forms/AutoRefreshForm.php index 85992af27..e1e436d34 100644 --- a/application/forms/AutoRefreshForm.php +++ b/application/forms/AutoRefreshForm.php @@ -8,6 +8,7 @@ use Icinga\User\Preferences; use Icinga\Web\Form; use Icinga\Web\Notification; use Icinga\Web\Session; +use Icinga\Web\Url; /** * Form class to adjust user auto refresh preferences @@ -46,6 +47,7 @@ class AutoRefreshForm extends Form Notification::success($notification); $this->getResponse()->setHeader('X-Icinga-Rerender-Layout', 'yes'); + $this->setRedirectUrl(Url::fromRequest()->without('renderLayout')); } /**