Skip to content

Commit

Permalink
Hostgroup: Add missing name param for search-editor's suggestionUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Oct 14, 2024
1 parent 4806939 commit 0eadf61
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions application/controllers/HostgroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,8 @@ public function indexAction(): Generator
$sortControl->getSortParam(),
$viewModeSwitcher->getViewModeParam(),
'name'
])->setSuggestionUrl(Url::fromPath(
'icingadb/hostgroup/complete',
[
'name' => $this->hostgroupName,
'_disableLayout' => true,
'showCompact' => true
]
));
]);
$searchBar->getSuggestionUrl()->addParams(['name' => $this->hostgroupName]);

if ($searchBar->hasBeenSent() && ! $searchBar->isValid()) {
if ($searchBar->hasBeenSubmitted()) {
Expand Down Expand Up @@ -155,6 +149,7 @@ public function searchEditorAction(): void
ViewModeSwitcher::DEFAULT_VIEW_MODE_PARAM,
'name'
]);
$editor->getSuggestionUrl()->addParams(['name' => $this->hostgroupName]);

Check failure on line 152 in application/controllers/HostgroupController.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.2 on ubuntu-latest

Cannot call method addParams() on ipl\Web\Url|null.

Check failure on line 152 in application/controllers/HostgroupController.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.3 on ubuntu-latest

Cannot call method addParams() on ipl\Web\Url|null.

Check failure on line 152 in application/controllers/HostgroupController.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 7.4 on ubuntu-latest

Cannot call method addParams() on ipl\Web\Url|null.

Check failure on line 152 in application/controllers/HostgroupController.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.0 on ubuntu-latest

Cannot call method addParams() on ipl\Web\Url|null.

Check failure on line 152 in application/controllers/HostgroupController.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.1 on ubuntu-latest

Cannot call method addParams() on ipl\Web\Url|null.

Check failure on line 152 in application/controllers/HostgroupController.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.2 on ubuntu-latest

Cannot call method addParams() on ipl\Web\Url|null.

Check failure on line 152 in application/controllers/HostgroupController.php

View workflow job for this annotation

GitHub Actions / phpstan / Static analysis with phpstan and php 8.3 on ubuntu-latest

Cannot call method addParams() on ipl\Web\Url|null.

$this->getDocument()->add($editor);
$this->setTitle(t('Adjust Filter'));
Expand Down

0 comments on commit 0eadf61

Please sign in to comment.