mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-26 03:09:10 +02:00
DashboardsController: Adjust usage of Dashboard::getActivePane()
This commit is contained in:
parent
d0d7e4ebd1
commit
a527946306
@ -64,7 +64,7 @@ class DashboardsController extends CompatController
|
|||||||
} else {
|
} else {
|
||||||
$pane = $this->getParam('pane');
|
$pane = $this->getParam('pane');
|
||||||
if (! $pane) {
|
if (! $pane) {
|
||||||
$pane = $this->dashboard->getActivePane()->getName();
|
$pane = $activeHome->getActivePane($this->dashboard->getTabs())->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->dashboard->activate($pane);
|
$this->dashboard->activate($pane);
|
||||||
@ -93,7 +93,7 @@ class DashboardsController extends CompatController
|
|||||||
if ($activeHome->hasEntries()) {
|
if ($activeHome->hasEntries()) {
|
||||||
$pane = $this->getParam('pane');
|
$pane = $this->getParam('pane');
|
||||||
if (! $pane) {
|
if (! $pane) {
|
||||||
$pane = $this->dashboard->getActivePane()->getName();
|
$pane = $activeHome->getActivePane($this->dashboard->getTabs())->getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->dashboard->activate($pane);
|
$this->dashboard->activate($pane);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user