Dashboard: Keep get params through requests

This avoid errors if a user manually refresh an edit dialog.

refs #7751
This commit is contained in:
Marius Hein 2014-11-20 14:36:33 +01:00
parent 5f37739227
commit 50c2c02e09
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}
/**