[icinga-checkins] icinga.org: icinga-web/r1.6: * Fixed hostgroup counting issues (ref #2192)
git at icinga.org
git at icinga.org
Fri Dec 16 14:53:19 CET 2011
Module: icinga-web
Branch: r1.6
Commit: e828dac0f3a3f5a287e7fe8d03c928bcc2e9b83d
URL: https://git.icinga.org/?p=icinga-web.git;a=commit;h=e828dac0f3a3f5a287e7fe8d03c928bcc2e9b83d
Author: Marius Hein <marius.hein at netways.de>
Date: Thu Dec 15 10:00:35 2011 +0100
* Fixed hostgroup counting issues (ref #2192)
---
.../LegacyLayer/TargetModifierModel.class.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php b/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
index ea4fc5c..e0b1229 100644
--- a/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
+++ b/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
@@ -800,7 +800,7 @@ class Api_Store_LegacyLayer_TargetModifierModel extends IcingaStoreTargetModifie
case IcingaApiConstants::TARGET_HOSTGROUP_SUMMARY:
$this->mainAlias = "hg";
- $this->setDistinct(false);
+ $this->setDistinct(true);
$this->setTarget("IcingaHostgroups");
$this->ignoreIds = true;
$this->aliasDefs = array(
More information about the icinga-checkins
mailing list