summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8497942)
raw | patch | inline | side by side (parent: 8497942)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Sep 2008 08:32:32 +0000 (08:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 3 Sep 2008 08:32:32 +0000 (08:32 +0000) |
-Hide departments if release management is activated
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12352 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12352 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc
index 82a4735b0e37ad694a7822c50112a7f4d62c5f74..23754acb81e37ef57ff8bd00970b26bf9ed089b8 100644 (file)
$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")."]";
+ }
}
}