diff --git a/application/controllers/DashboardController.php b/application/controllers/DashboardController.php index b381c2640..2182fb793 100644 --- a/application/controllers/DashboardController.php +++ b/application/controllers/DashboardController.php @@ -1,4 +1,31 @@ + * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 + * @author Icinga Development Team + */ +// {{{ICINGA_LICENSE_HEADER}}} use Icinga\Web\ActionController; use Icinga\Web\Url; @@ -94,9 +121,9 @@ class DashboardController extends ActionController { $dashboard = $this->getDashboard(); - if ($this->_getParam('dashboard')) { - $dashboardName = $this->_getParam('dashboard'); - $dashboard->activate($dashboardName); + if ($this->_getParam('pane')) { + $pane = $this->_getParam('pane'); + $dashboard->activate($pane); } $this->view->tabs = $dashboard->getTabs(); $this->view->tabs->add( @@ -110,3 +137,5 @@ class DashboardController extends ActionController $this->view->dashboard = $dashboard; } } + +// @codingStandardsIgnoreEnd \ No newline at end of file diff --git a/application/views/scripts/dashboard/addurl.phtml b/application/views/scripts/dashboard/addurl.phtml index 4fba998f2..c8653ae32 100644 --- a/application/views/scripts/dashboard/addurl.phtml +++ b/application/views/scripts/dashboard/addurl.phtml @@ -1,2 +1,3 @@

Add dashboard URL

-form->render($this) ?> \ No newline at end of file + +form->render($this); ?> \ No newline at end of file diff --git a/application/views/scripts/dashboard/index.phtml b/application/views/scripts/dashboard/index.phtml index 26e7d1248..6b1e5c9bb 100644 --- a/application/views/scripts/dashboard/index.phtml +++ b/application/views/scripts/dashboard/index.phtml @@ -1,3 +1,3 @@ -tabs->render($this) ?> +tabs->render($this); ?> -dashboard->render($this) ?> \ No newline at end of file +dashboard->render($this); ?> \ No newline at end of file diff --git a/application/views/scripts/dashboard/show-configuration.phtml b/application/views/scripts/dashboard/show-configuration.phtml index 4cec816bf..d7421e5d1 100644 --- a/application/views/scripts/dashboard/show-configuration.phtml +++ b/application/views/scripts/dashboard/show-configuration.phtml @@ -3,7 +3,7 @@

Saving dashboard failed


- Your dashboard couldn't be stored (error: "exceptionMessage ?>"). This could have one or more + Your dashboard couldn't be stored (error: "exceptionMessage; ?>"). This could have one or more of the following reasons: