[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: * Fixed hostgroup counting issues (ref #2192)

git at icinga.org git at icinga.org
Mon Feb 20 19:24:46 CET 2012


Module: icinga-web
Branch: mfriedrich/fixes
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