fix gettype for multiple host selection

This commit is contained in:
Camille TRUCHOT 2018-10-01 11:51:19 +02:00 committed by Thomas Gelf
parent bb81de8b84
commit 0931c1df91

View File

@ -861,7 +861,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
throw new ProgrammingError('getAppliedGroups is only available for hosts currently!');
}
$type = strtolower($this->type);
$type = strtolower($this->getType());
$query = $this->db->select()->from(
['gr' => "icinga_${type}group_${type}_resolved"],
['g.object_name']