mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
SetupNewDashboardForm: Ensure to rerender dashlet parts with custom_url when autosubmitting
This commit is contained in:
parent
b358e1bb2c
commit
2732d7df66
@ -266,7 +266,7 @@ class DashletForm extends SetupNewDashboardForm
|
||||
// When the user wishes to create a new dashboard pane, we have to explicitly reset the dashboard panes
|
||||
// of the original home, so that it isn't considered as we want to move the pane even though it isn't
|
||||
// supposed to when the original home contains a dashboard with the same name
|
||||
// @see DashboardHome::managePanes() for details
|
||||
// @see DashboardHome::manageEntries() for details
|
||||
$selectedPane = $this->getPopulatedValue('pane');
|
||||
if ((! $selectedPane || $selectedPane === self::CREATE_NEW_PANE)
|
||||
&& ! $currentHome->hasEntry($currentPane->getName())) {
|
||||
|
@ -208,6 +208,7 @@ class SetupNewDashboardForm extends BaseDashboardForm
|
||||
|
||||
protected function assembleDashletElements()
|
||||
{
|
||||
$this->addElement('hidden', 'custom_url', ['required' => false, 'value' => 'y']);
|
||||
$this->addElement('text', 'dashlet', [
|
||||
'required' => true,
|
||||
'label' => t('Dashlet Title'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user