Skip to content

Commit

Permalink
(Host/Service)Controller: Add missing onlyWithCustomVarSources() call
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jan 22, 2025
1 parent d185a1b commit f21a691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/HostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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());

Expand Down
2 changes: 2 additions & 0 deletions application/controllers/ServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand All @@ -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());

Expand Down

0 comments on commit f21a691

Please sign in to comment.