mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
DashletForm: Ensure to dump unselected dashlets before updating the DB
This commit is contained in:
parent
49b37ea522
commit
737f1d459a
@ -152,6 +152,7 @@ class DashletForm extends SetupNewDashboardForm
|
|||||||
$this->addHtml($formControls);
|
$this->addHtml($formControls);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// Just setup the initial view of the modal view
|
||||||
parent::assemble();
|
parent::assemble();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -212,11 +213,10 @@ class DashletForm extends SetupNewDashboardForm
|
|||||||
$currentPane->manageEntry($customDashlet);
|
$currentPane->manageEntry($customDashlet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->dumpArbitaryDashlets(false);
|
||||||
// Avoid the hassle of iterating through the module dashlets each time to check if exits,
|
// Avoid the hassle of iterating through the module dashlets each time to check if exits,
|
||||||
// even though the current pane doesn't have any entries
|
// even though the current pane doesn't have any entries
|
||||||
if (! $this->getPopulatedValue('new_pane') && $currentPane->hasEntries()) {
|
if (! $this->getPopulatedValue('new_pane') && $currentPane->hasEntries()) {
|
||||||
$this->dumpArbitaryDashlets(false);
|
|
||||||
|
|
||||||
foreach (self::$moduleDashlets as $_ => $dashlets) {
|
foreach (self::$moduleDashlets as $_ => $dashlets) {
|
||||||
/** @var Dashlet $dashlet */
|
/** @var Dashlet $dashlet */
|
||||||
foreach ($dashlets as $dashlet) {
|
foreach ($dashlets as $dashlet) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user