[icinga-checkins] icinga.org: icingaweb2/feature/security-gui-5647: Dashboard: Keep get params through requests

git at icinga.org git at icinga.org
Thu Nov 20 16:13:06 CET 2014


Module: icingaweb2
Branch: feature/security-gui-5647
Commit: 50c2c02e094cd35e7ca8346bc1ea1b28119de525
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=50c2c02e094cd35e7ca8346bc1ea1b28119de525

Author: Marius Hein <marius.hein at netways.de>
Date:   Thu Nov 20 14:36:33 2014 +0100

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 dd7da0b..6c38ff9 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());
     }
 
     /**



More information about the icinga-checkins mailing list