Skip to content

Commit

Permalink
Dashboard: Keep get params through requests
Browse files Browse the repository at this point in the history
This avoid errors if a user manually refresh an edit dialog.

refs #7751
  • Loading branch information
mxhash committed Nov 20, 2014
1 parent 5f37739 commit 50c2c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/forms/Dashboard/DashletForm.php
Expand Up @@ -6,7 +6,7 @@

use Icinga\Web\Widget\Dashboard;
use Icinga\Web\Form;
use Icinga\Web\Request;
use Icinga\Web\Url;
use Icinga\Web\Widget\Dashboard\Dashlet;

/**
Expand All @@ -28,6 +28,7 @@ public function init()
if (! $this->getSubmitLabel()) {
$this->setSubmitLabel(t('Add To Dashboard'));
}
$this->setAction(URL::fromRequest());
}

/**
Expand Down

0 comments on commit 50c2c02

Please sign in to comment.