From c2d23a697141ebf327149a98946e0001a659e45e Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 15 Oct 2024 14:29:41 +0200 Subject: [PATCH] Hostgroup: Add missing `name` param for search-editor's suggestionUrl --- application/controllers/HostgroupController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/controllers/HostgroupController.php b/application/controllers/HostgroupController.php index e48adca20..e452ca5cf 100644 --- a/application/controllers/HostgroupController.php +++ b/application/controllers/HostgroupController.php @@ -156,6 +156,10 @@ public function searchEditorAction(): void 'name' ]); + if ($editor->getSuggestionUrl()) { + $editor->getSuggestionUrl()->addParams(['name' => $this->hostgroupName]); + } + $this->getDocument()->add($editor); $this->setTitle(t('Adjust Filter')); }