Skip to content

Commit 396597f

Browse files
authored
Fix that host / servicegroup bulk processing options affect objects not in said group (#1155)
fixes #1154 requires Icinga/ipl-web#263
2 parents 79481c5 + 49c75e8 commit 396597f

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

application/controllers/HostgroupController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ public function indexAction(): Generator
118118
$this->addControl($limitControl);
119119
$this->addControl($viewModeSwitcher);
120120
$this->addControl($searchBar);
121-
$continueWith = $this->createContinueWith(Links::hostsDetails(), $searchBar);
121+
$continueWith = $this->createContinueWith(
122+
Links::hostsDetails()
123+
->setFilter(Filter::equal('hostgroup.name', $hostgroup->name)),
124+
$searchBar
125+
);
122126

123127
$this->addContent($hostList);
124128

application/controllers/ServicegroupController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ public function indexAction(): Generator
125125
$this->addControl($limitControl);
126126
$this->addControl($viewModeSwitcher);
127127
$this->addControl($searchBar);
128-
$continueWith = $this->createContinueWith(Links::servicesDetails(), $searchBar);
128+
$continueWith = $this->createContinueWith(
129+
Links::servicesDetails()
130+
->setFilter(Filter::equal('servicegroup.name', $servicegroup->name)),
131+
$searchBar
132+
);
129133

130134
$this->addContent($serviceList);
131135

0 commit comments

Comments
 (0)