From 1609447070529db729abb365e4b6fdcbfca74a5e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Feb 2008 09:16:06 +0000 Subject: [PATCH] Group Application -Mark those releases with configured menu structure. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8849 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/groups/apps/app_list.tpl | 6 +++++- .../admin/groups/apps/class_groupApplication.inc | 13 ++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/groups/apps/app_list.tpl b/gosa-plugins/goto/admin/groups/apps/app_list.tpl index 1ac482c12..044c21df9 100644 --- a/gosa-plugins/goto/admin/groups/apps/app_list.tpl +++ b/gosa-plugins/goto/admin/groups/apps/app_list.tpl @@ -5,7 +5,11 @@ {t}Release{/t} diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 0877b855f..33231aacd 100644 --- a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -93,7 +93,7 @@ class appgroup extends plugin */ function getReleases() { - $ret =array("/" => array("name" => "/" , "parts" => array(),"suffix" => get_ou('applicationou'))); + $ret =array("/" => array("name" => "/", "found" => TRUE , "parts" => array(),"suffix" => get_ou('applicationou'))); if($this->enableReleaseManagement){ /* Only display those releases that we are able to read */ @@ -125,7 +125,18 @@ class appgroup extends plugin $FAIstate = $attrs['FAIstate'][0]; } + $all = $this->_get_all_entries(); + $found = FALSE; + foreach($all as $entry){ + if(isset($entry['DN']) && preg_match("/^".normalizePreg($bb)."/",$entry['DN'])){ + $found =TRUE; + break; + } + } + + $cnt = 0; $ret[$name] = array("name" => $name, + "found" => $found, "FAIstate" => $FAIstate, "dn" => $attrs['dn'], "parts" => $parts,"suffix" => $bb.get_ou('applicationou')); -- 2.30.2