From 83369b3997c1df970c34c101fdbd0d339c8520fd Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Sep 2008 08:32:32 +0000 Subject: [PATCH] Updated group / apps -Hide departments if release management is activated git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12352 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groups/apps/class_groupApplication.inc | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 82a4735b0..23754acb8 100644 --- a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -427,15 +427,17 @@ class appgroup extends plugin $div = new divSelectBox("appgroup"); $div->SetHeight(300); $departments = array(); - $res = get_list("(objectClass=gosaDepartment)", "application", $this->curbase,array("description","cn","ou"),GL_SIZELIMIT); - foreach($res as $value){ - $fdn = $value['dn']; - $fdn = preg_replace("/".normalizePreg($this->curbase)."/","",$fdn); - $fdn= @LDAP::fix($fdn); - if($value["description"][0]!=".."){ - $departments[$value['dn']]= convert_department_dn($fdn)." - [".$value["description"][0]."]"; - }else{ - $departments[$value['dn']]=convert_department_dn($fdn)." ["._("Back")."]"; + if(!$this->enableReleaseManagement){ + $res = get_list("(objectClass=gosaDepartment)", "application", $this->curbase,array("description","cn","ou"),GL_SIZELIMIT); + foreach($res as $value){ + $fdn = $value['dn']; + $fdn = preg_replace("/".normalizePreg($this->curbase)."/","",$fdn); + $fdn= @LDAP::fix($fdn); + if($value["description"][0]!=".."){ + $departments[$value['dn']]= convert_department_dn($fdn)." - [".$value["description"][0]."]"; + }else{ + $departments[$value['dn']]=convert_department_dn($fdn)." ["._("Back")."]"; + } } } -- 2.30.2