mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Follow-up for 63802dfc4
This commit is contained in:
parent
2732d7df66
commit
fdc9b36ee5
@ -249,6 +249,11 @@ class DashboardsController extends CompatController
|
||||
|
||||
$this->dashboard->load();
|
||||
|
||||
$home = $this->params->getRequired('home');
|
||||
// TODO: Shouldn't be necessary. load() should get the name already and
|
||||
// the form should otherwise ensure it has the required data
|
||||
$this->dashboard->activateHome($this->dashboard->getEntry($home));
|
||||
|
||||
$dashletForm = new DashletForm($this->dashboard);
|
||||
$dashletForm->populate($this->getRequest()->getPost());
|
||||
$dashletForm->on(DashletForm::ON_SUCCESS, function () {
|
||||
|
@ -56,7 +56,7 @@ class DashletForm extends SetupNewDashboardForm
|
||||
$panes = $firstHome->getEntryKeyTitleArr();
|
||||
}
|
||||
} else {
|
||||
$panes = $activeHome->getEntryKeyTitleArr();
|
||||
$panes = $activeHome->loadDashboardEntries()->getEntryKeyTitleArr();
|
||||
}
|
||||
} elseif ($this->dashboard->hasEntry($populatedHome)) {
|
||||
$this->dashboard->loadDashboardEntries($populatedHome);
|
||||
|
Loading…
x
Reference in New Issue
Block a user