[icinga-checkins] icinga.org: icinga-web/mfriedrich/default: Fixed flipped retained state selection

git at icinga.org git at icinga.org
Fri Aug 26 13:13:30 CEST 2011


Module: icinga-web
Branch: mfriedrich/default
Commit: 0084ed2fb1c71c54cf298adb2cd28715e302ad8e
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=0084ed2fb1c71c54cf298adb2cd28715e302ad8e

Author: Jannis Moßhanner <jannis.mosshammer at netways.de>
Date:   Fri Aug 26 12:52:34 2011 +0200

Fixed flipped retained state selection

---

 .../LegacyLayer/TargetModifierModel.class.php      |    3 ++-
 1 files changed, 2 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 0215227..abceef3 100644
--- a/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
+++ b/app/modules/Api/models/Store/LegacyLayer/TargetModifierModel.class.php
@@ -896,9 +896,10 @@ class Api_Store_LegacyLayer_TargetModifierModel extends IcingaStoreTargetModifie
 
         }
         $db = $this->getContext()->getDatabaseManager()->getDatabase('icinga');
+        // check if retained state must be respected
         if(method_exists($db,"useRetained")) {
             if($this->retainedAlias) {
-                $o->andWhere($this->retainedAlias.".config_type= ?",$db->useRetained() ? "0" : "1");
+                $o->andWhere($this->retainedAlias.".config_type= ?",$db->useRetained() ? "1" : "0");
                                        
             }
         }





More information about the icinga-checkins mailing list