mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
HostgroupController: Don't apply id filter using the FilterProcessor
Ids are binary strings which may contain asterisks. These are then interpreted as wildcard by the filter processor.
This commit is contained in:
parent
248ab1c704
commit
4e1bd775f9
1 changed files with 2 additions and 6 deletions
|
|
@ -43,13 +43,9 @@ class HostgroupController extends Controller
|
|||
{
|
||||
$db = $this->getDb();
|
||||
|
||||
$hosts = Host::on($db)->with('state');
|
||||
|
||||
FilterProcessor::apply(
|
||||
new FilterExpression('hostgroup.id', '=', $this->hostgroup->id),
|
||||
$hosts
|
||||
);
|
||||
$hosts = Host::on($db)->with('state')->utilize('hostgroup');
|
||||
|
||||
$hosts->getSelectBase()->where(['host_hostgroup.id = ?' => $this->hostgroup->id]);
|
||||
$this->applyMonitoringRestriction($hosts);
|
||||
|
||||
$limitControl = $this->createLimitControl();
|
||||
|
|
|
|||
Loading…
Reference in a new issue