[icinga-checkins] icinga.org: icinga-web/r1.2: * Fixed commands being send x times per item when x items are selected ( #fixes 823)

git at icinga.org git at icinga.org
Wed Sep 29 14:36:17 CEST 2010


Module: icinga-web
Branch: r1.2
Commit: 14ad6d86dfa2e2353ffcf2d1ddf49900e3224e90
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=14ad6d86dfa2e2353ffcf2d1ddf49900e3224e90

Author: mojadev <mojadev at localhost.localdomain>
Date:   Tue Sep 28 11:46:29 2010 +0200

* Fixed commands being send x times per item when x items are selected (#fixes 823)

---

 .../Web/models/Icinga/ApiContainerModel.class.php  |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/modules/Web/models/Icinga/ApiContainerModel.class.php b/app/modules/Web/models/Icinga/ApiContainerModel.class.php
index 31ac61d..cec1c1f 100755
--- a/app/modules/Web/models/Icinga/ApiContainerModel.class.php
+++ b/app/modules/Web/models/Icinga/ApiContainerModel.class.php
@@ -284,10 +284,10 @@ implements AgaviISingletonModel {
 				->log($lerror, AgaviLogger::ERROR);
 			}
 			else {
-				
+			
 				foreach ($ds as $dk=>$d) {
 					try {
-						$d->setCommands($arry);
+						$d->setCommands(array($command));
 						$d->send();
 					}
 					catch (IcingaApiCommandException $e) {
@@ -319,4 +319,4 @@ implements AgaviISingletonModel {
 	
 }
 
-?>
\ No newline at end of file
+?>





More information about the icinga-checkins mailing list