summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5b267fd)
raw | patch | inline | side by side (parent: 5b267fd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Apr 2008 12:21:22 +0000 (12:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Apr 2008 12:21:22 +0000 (12:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10472 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/applications/class_applicationManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc
index 71b9a49a6ad3174d7709c7b96b28c76842085ba1..81a5ced747ec8a10956e999e08b0cf3b72e8d7e4 100644 (file)
if(!$this->IsReleaseManagementActivated()){
$use_base = $this->app_base;
+ if($SubSearch){
+ $use_base = preg_replace("/^".normalizePreg(get_ou("applicationou"))."/","",$use_base);
+ }
}else{
$use_base = $this->app_release;
+ $SubSearch= FALSE;
}
-
- if($SubSearch){
- $Flags |= GL_SUBSEARCH;
+
+ if($SubSearch){
+ $res= get_sub_list($Filter, "application",get_ou("applicationou"), $use_base, array("cn","description","dn","objectClass"), $Flags);
+ }else{
+ $res= get_list($Filter, "application",$use_base, array("cn","description","dn","objectClass"), $Flags);
}
-
- $res= get_list($Filter, "application", $use_base, array("cn","description","dn","objectClass"), $Flags);
$tmp2 = array();
foreach ($res as $val){
$tmp[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']]=$val;