[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: Fix Cronk listing - hide hidden Cronks from userdisplay

git at icinga.org git at icinga.org
Wed Feb 13 16:10:31 CET 2013


Module: icinga-web
Branch: mfriedrich/fixes
Commit: 5da9fae021c4aae07c93812d55ab98f92daf8768
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=5da9fae021c4aae07c93812d55ab98f92daf8768

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Mon Feb 11 16:07:07 2013 +0100

Fix Cronk listing - hide hidden Cronks from userdisplay

The error has been introduced due to Cronk session caching.

(fixes #3569)

---

 .../models/Provider/CronksDataModel.class.php      |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/modules/Cronks/models/Provider/CronksDataModel.class.php b/app/modules/Cronks/models/Provider/CronksDataModel.class.php
index e431e9f..8575a32 100644
--- a/app/modules/Cronks/models/Provider/CronksDataModel.class.php
+++ b/app/modules/Cronks/models/Provider/CronksDataModel.class.php
@@ -694,6 +694,10 @@ class Cronks_Provider_CronksDataModel extends CronksBaseModel implements AgaviIS
             $tmp = array();
 
             foreach($cronks as $cronk) {
+                // skipping hidden cronks for the output
+                if ($cronk['hide'] == true) {
+                    continue;
+                }
                 if (AppKitArrayUtil::matchAgainstStringList($cronk['categories'], $category_name)) {
                     $tmp[] = $cronk;
                 }





More information about the icinga-checkins mailing list