summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 628c026)
raw | patch | inline | side by side (parent: 628c026)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Apr 2008 09:38:49 +0000 (09:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Apr 2008 09:38:49 +0000 (09:38 +0000) |
-if ou= was part of the dn, the generated result was invalid.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10497 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10497 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history | |
gosa-core/plugins/admin/departments/class_departmentManagement.inc | patch | blob | history |
index 961abc56a65296dd2956d70ccedb1935c1750b08..08626e248e47382e578ea438ae417740b2aceaf2 100644 (file)
/* Build a sub-directory style list of the tree level
specified in $dn */
+ global $config;
+ $dn = preg_replace("/".normalizePreg($config->current['BASE'])."$/i","",$dn);
+ if(empty($dn)) return("/");
+
foreach (split(',', $dn) as $rdn){
/* We're only interested in organizational units... */
diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc
index 43b92fd64cf0ab734c7cc9711cd5be60b032ebbf..d2ce73f68b5a5c5bd1b2e4969d96187858246b34 100644 (file)
}
natcasesort ($this->departments);
reset ($this->departments);
+ print_a($this->departments) ;
}
function remove_from_parent()