mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
DashboardsController: Use the default home when pane is requested without a home param in the DM view
This commit is contained in:
parent
fbd2192ddc
commit
54c3b9e2c6
@ -410,6 +410,11 @@ class DashboardsController extends CompatController
|
|||||||
{
|
{
|
||||||
$highlightHome = $this->params->get('home');
|
$highlightHome = $this->params->get('home');
|
||||||
$highlightPane = $this->params->get('pane');
|
$highlightPane = $this->params->get('pane');
|
||||||
|
if (! $highlightHome && $highlightPane) {
|
||||||
|
// A Dashboard Pane is always requested with home param unless it's part of the "Default Home",
|
||||||
|
// so we just assume here that the user is originating from the base route!!
|
||||||
|
$highlightHome = DashboardHome::DEFAULT_HOME;
|
||||||
|
}
|
||||||
|
|
||||||
$this->dashboard->load($highlightHome, $highlightPane, true);
|
$this->dashboard->load($highlightHome, $highlightPane, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user