File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 18
18
use ipl \Stdlib \Filter ;
19
19
use ipl \Web \Control \LimitControl ;
20
20
use ipl \Web \Control \SortControl ;
21
- use ipl \Web \Url ;
22
21
23
22
class HostgroupController extends Controller
24
23
{
@@ -84,14 +83,7 @@ public function indexAction(): Generator
84
83
$ sortControl ->getSortParam (),
85
84
$ viewModeSwitcher ->getViewModeParam (),
86
85
'name '
87
- ])->setSuggestionUrl (Url::fromPath (
88
- 'icingadb/hostgroup/complete ' ,
89
- [
90
- 'name ' => $ this ->hostgroupName ,
91
- '_disableLayout ' => true ,
92
- 'showCompact ' => true
93
- ]
94
- ));
86
+ ]);
95
87
96
88
if ($ searchBar ->hasBeenSent () && ! $ searchBar ->isValid ()) {
97
89
if ($ searchBar ->hasBeenSubmitted ()) {
@@ -156,6 +148,10 @@ public function searchEditorAction(): void
156
148
'name '
157
149
]);
158
150
151
+ if ($ editor ->getSuggestionUrl ()) {
152
+ $ editor ->getSuggestionUrl ()->addParams (['name ' => $ this ->hostgroupName ]);
153
+ }
154
+
159
155
$ this ->getDocument ()->add ($ editor );
160
156
$ this ->setTitle (t ('Adjust Filter ' ));
161
157
}
Original file line number Diff line number Diff line change 18
18
use ipl \Stdlib \Filter ;
19
19
use ipl \Web \Control \LimitControl ;
20
20
use ipl \Web \Control \SortControl ;
21
- use ipl \Web \Url ;
22
21
23
22
class ServicegroupController extends Controller
24
23
{
@@ -92,14 +91,7 @@ public function indexAction(): Generator
92
91
$ sortControl ->getSortParam (),
93
92
$ viewModeSwitcher ->getViewModeParam (),
94
93
'name '
95
- ])->setSuggestionUrl (Url::fromPath (
96
- 'icingadb/servicegroup/complete ' ,
97
- [
98
- 'name ' => $ this ->servicegroupName ,
99
- '_disableLayout ' => true ,
100
- 'showCompact ' => true
101
- ]
102
- ));
94
+ ]);
103
95
104
96
if ($ searchBar ->hasBeenSent () && ! $ searchBar ->isValid ()) {
105
97
if ($ searchBar ->hasBeenSubmitted ()) {
You can’t perform that action at this time.
0 commit comments