From 2bf78970234b872436c948513cbc3f3f152e97e1 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 15 Oct 2024 14:29:41 +0200 Subject: [PATCH] (Host/Service)groupController: Don't overwrite the (SearchBar/SearchEditor) suggestionUrl SuggestionUrl now uses the preserveParams as default params --- application/controllers/HostgroupController.php | 10 +--------- application/controllers/ServicegroupController.php | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/application/controllers/HostgroupController.php b/application/controllers/HostgroupController.php index e48adca20..c297a8e19 100644 --- a/application/controllers/HostgroupController.php +++ b/application/controllers/HostgroupController.php @@ -18,7 +18,6 @@ use ipl\Stdlib\Filter; use ipl\Web\Control\LimitControl; use ipl\Web\Control\SortControl; -use ipl\Web\Url; class HostgroupController extends Controller { @@ -84,14 +83,7 @@ public function indexAction(): Generator $sortControl->getSortParam(), $viewModeSwitcher->getViewModeParam(), 'name' - ])->setSuggestionUrl(Url::fromPath( - 'icingadb/hostgroup/complete', - [ - 'name' => $this->hostgroupName, - '_disableLayout' => true, - 'showCompact' => true - ] - )); + ]); if ($searchBar->hasBeenSent() && ! $searchBar->isValid()) { if ($searchBar->hasBeenSubmitted()) { diff --git a/application/controllers/ServicegroupController.php b/application/controllers/ServicegroupController.php index c3dea15bc..f4fce5fd2 100644 --- a/application/controllers/ServicegroupController.php +++ b/application/controllers/ServicegroupController.php @@ -18,7 +18,6 @@ use ipl\Stdlib\Filter; use ipl\Web\Control\LimitControl; use ipl\Web\Control\SortControl; -use ipl\Web\Url; class ServicegroupController extends Controller { @@ -92,14 +91,7 @@ public function indexAction(): Generator $sortControl->getSortParam(), $viewModeSwitcher->getViewModeParam(), 'name' - ])->setSuggestionUrl(Url::fromPath( - 'icingadb/servicegroup/complete', - [ - 'name' => $this->servicegroupName, - '_disableLayout' => true, - 'showCompact' => true - ] - )); + ]); if ($searchBar->hasBeenSent() && ! $searchBar->isValid()) { if ($searchBar->hasBeenSubmitted()) {