From 50c2c02e094cd35e7ca8346bc1ea1b28119de525 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Thu, 20 Nov 2014 14:36:33 +0100 Subject: [PATCH] Dashboard: Keep get params through requests This avoid errors if a user manually refresh an edit dialog. refs #7751 --- application/forms/Dashboard/DashletForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/forms/Dashboard/DashletForm.php b/application/forms/Dashboard/DashletForm.php index dd7da0b65..6c38ff97e 100644 --- a/application/forms/Dashboard/DashletForm.php +++ b/application/forms/Dashboard/DashletForm.php @@ -6,7 +6,7 @@ namespace Icinga\Forms\Dashboard; use Icinga\Web\Widget\Dashboard; use Icinga\Web\Form; -use Icinga\Web\Request; +use Icinga\Web\Url; use Icinga\Web\Widget\Dashboard\Dashlet; /** @@ -28,6 +28,7 @@ class DashletForm extends Form if (! $this->getSubmitLabel()) { $this->setSubmitLabel(t('Add To Dashboard')); } + $this->setAction(URL::fromRequest()); } /**