mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
Dashboard: Keep get params through requests
This avoid errors if a user manually refresh an edit dialog. refs #7751
This commit is contained in:
parent
5f37739227
commit
50c2c02e09
@ -6,7 +6,7 @@ namespace Icinga\Forms\Dashboard;
|
|||||||
|
|
||||||
use Icinga\Web\Widget\Dashboard;
|
use Icinga\Web\Widget\Dashboard;
|
||||||
use Icinga\Web\Form;
|
use Icinga\Web\Form;
|
||||||
use Icinga\Web\Request;
|
use Icinga\Web\Url;
|
||||||
use Icinga\Web\Widget\Dashboard\Dashlet;
|
use Icinga\Web\Widget\Dashboard\Dashlet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,6 +28,7 @@ class DashletForm extends Form
|
|||||||
if (! $this->getSubmitLabel()) {
|
if (! $this->getSubmitLabel()) {
|
||||||
$this->setSubmitLabel(t('Add To Dashboard'));
|
$this->setSubmitLabel(t('Add To Dashboard'));
|
||||||
}
|
}
|
||||||
|
$this->setAction(URL::fromRequest());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user