mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-22 17:37:45 +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();
|
$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 = new DashletForm($this->dashboard);
|
||||||
$dashletForm->populate($this->getRequest()->getPost());
|
$dashletForm->populate($this->getRequest()->getPost());
|
||||||
$dashletForm->on(DashletForm::ON_SUCCESS, function () {
|
$dashletForm->on(DashletForm::ON_SUCCESS, function () {
|
||||||
|
@ -56,7 +56,7 @@ class DashletForm extends SetupNewDashboardForm
|
|||||||
$panes = $firstHome->getEntryKeyTitleArr();
|
$panes = $firstHome->getEntryKeyTitleArr();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$panes = $activeHome->getEntryKeyTitleArr();
|
$panes = $activeHome->loadDashboardEntries()->getEntryKeyTitleArr();
|
||||||
}
|
}
|
||||||
} elseif ($this->dashboard->hasEntry($populatedHome)) {
|
} elseif ($this->dashboard->hasEntry($populatedHome)) {
|
||||||
$this->dashboard->loadDashboardEntries($populatedHome);
|
$this->dashboard->loadDashboardEntries($populatedHome);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user