diff --git a/application/controllers/HostController.php b/application/controllers/HostController.php index d30ea765d..ed716fd8b 100644 --- a/application/controllers/HostController.php +++ b/application/controllers/HostController.php @@ -373,6 +373,7 @@ public function completeAction(): void { $suggestions = (new ObjectSuggestions()) ->setModel(DependencyNode::class) + ->onlyWithCustomVarSources(['host', 'service', 'hostgroup', 'servicegroup']) ->setBaseFilter(Filter::equal("child.host.id", $this->host->id)) ->forRequest($this->getServerRequest()); @@ -383,6 +384,7 @@ public function childrenCompleteAction(): void { $suggestions = (new ObjectSuggestions()) ->setModel(DependencyNode::class) + ->onlyWithCustomVarSources(['host', 'service', 'hostgroup', 'servicegroup']) ->setBaseFilter(Filter::equal("parent.host.id", $this->host->id)) ->forRequest($this->getServerRequest()); diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index fbfb08ef6..c7c540a86 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -336,6 +336,7 @@ public function completeAction(): void { $suggestions = (new ObjectSuggestions()) ->setModel(DependencyNode::class) + ->onlyWithCustomVarSources(['host', 'service', 'hostgroup', 'servicegroup']) ->setBaseFilter(Filter::equal("child.service.id", $this->service->id)) ->forRequest($this->getServerRequest()); @@ -346,6 +347,7 @@ public function childrenCompleteAction(): void { $suggestions = (new ObjectSuggestions()) ->setModel(DependencyNode::class) + ->onlyWithCustomVarSources(['host', 'service', 'hostgroup', 'servicegroup']) ->setBaseFilter(Filter::equal("parent.service.id", $this->service->id)) ->forRequest($this->getServerRequest());