From ea5db51213eede39e19ae30617eee7429a7c26e9 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 3 Aug 2015 13:00:03 +0200 Subject: [PATCH] Fix "Try to get an inexistent pane." when clicking on the "Search" tab --- library/Icinga/Web/Widget/SearchDashboard.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/library/Icinga/Web/Widget/SearchDashboard.php b/library/Icinga/Web/Widget/SearchDashboard.php index c394e32fa..0ca759919 100644 --- a/library/Icinga/Web/Widget/SearchDashboard.php +++ b/library/Icinga/Web/Widget/SearchDashboard.php @@ -19,6 +19,25 @@ class SearchDashboard extends Dashboard */ const SEARCH_PANE = 'search'; + /** + * {@inheritdoc} + */ + public function getTabs() + { + if ($this->tabs === null) { + $this->tabs = new Tabs(); + $this->tabs->add( + 'search', + array( + 'title' => t('Show Search', 'dashboard.pane.tooltip'), + 'label' => t('Search'), + 'url' => Url::fromRequest() + ) + ); + } + return $this->tabs; + } + /** * Load all available search dashlets from modules *