mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +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);
|
||||
}
|
||||
} else {
|
||||
// Just setup the initial view of the modal view
|
||||
parent::assemble();
|
||||
}
|
||||
}
|
||||
@ -212,11 +213,10 @@ class DashletForm extends SetupNewDashboardForm
|
||||
$currentPane->manageEntry($customDashlet);
|
||||
}
|
||||
|
||||
$this->dumpArbitaryDashlets(false);
|
||||
// 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
|
||||
if (! $this->getPopulatedValue('new_pane') && $currentPane->hasEntries()) {
|
||||
$this->dumpArbitaryDashlets(false);
|
||||
|
||||
foreach (self::$moduleDashlets as $_ => $dashlets) {
|
||||
/** @var Dashlet $dashlet */
|
||||
foreach ($dashlets as $dashlet) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user