HostgroupRestriction: pass fitting table alias

fixes #2164
fixes #2809
This commit is contained in:
Thomas Gelf 2023-10-11 11:37:21 +02:00
parent d02e430008
commit 6178265a12
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ This version hasn't been released yet
### Permissions and Restrictions
* FIX: monitoring-related permission checks have been refactored (#2712)
* FIX: Hostgroup-Filters have not been applied to Overview tables (#2775)
* FIX: error editing Hosts with hostgroup restriction in place (#2164, #2809)
### Configuration Branches
* FEATURE: with this release, directorbranches v1.3 supports a "default branch" (#2688)

View File

@ -93,7 +93,7 @@ class HostgroupRestriction extends ObjectRestriction
['id']
)->where('id = ?', $hostgroup->id);
$this->filterHostGroupsQuery($query);
$this->filterHostGroupsQuery($query, 'h');
return (int) $this->db->fetchOne($query) === (int) $hostgroup->get('id');
}