[icinga-checkins] icinga.org: icinga-web/master: * Fixed hostgroupcommands being send twice in hostgroupoverview ( fixes #1833)

git at icinga.org git at icinga.org
Tue Feb 21 14:12:52 CET 2012


Module: icinga-web
Branch: master
Commit: 1e0255f625591836c098cac5a433878628bc8007
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=1e0255f625591836c098cac5a433878628bc8007

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Feb 21 14:12:13 2012 +0100

* Fixed hostgroupcommands being send twice in hostgroupoverview (fixes #1833)

---

 .../models/System/CommandSenderModel.class.php     |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/models/System/CommandSenderModel.class.php b/app/modules/Cronks/models/System/CommandSenderModel.class.php
index 31cabfc..4023d9d 100644
--- a/app/modules/Cronks/models/System/CommandSenderModel.class.php
+++ b/app/modules/Cronks/models/System/CommandSenderModel.class.php
@@ -47,6 +47,7 @@ class Cronks_System_CommandSenderModel extends CronksBaseModel {
 
     public function dispatchCommands() {
         $dispatcher = $this->getContext()->getModel("Commands.CommandDispatcher","Api");
+        $this->selection = array_unique($this->selection);
         foreach($this->selection as $target) {
             $console = $this->getConsoleInstance($target['instance']);
             $dispatcher->setConsoleContext($console);





More information about the icinga-checkins mailing list