From: hickert Date: Tue, 11 Jul 2006 08:10:05 +0000 (+0000) Subject: Added . to list of available departments. To be able to set obtions for the current... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8b176bc65ed2c574b8b74299ecb85c985ce759a;p=gosa.git Added . to list of available departments. To be able to set obtions for the current base git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4092 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc index d622df9e7..815f40da2 100644 --- a/plugins/admin/departments/class_departmentManagement.inc +++ b/plugins/admin/departments/class_departmentManagement.inc @@ -344,6 +344,12 @@ class departmentManagement extends plugin } $this->departments= array(); + + /* Add current base to the list of available departments, but only if its naming attribute is 'ou' */ + if(preg_match("/^ou=/",$base)){ + $this->departments [ convert_department_dn($base) ] = "."; + } + foreach ($res as $key => $value){ /* Don't display base as entry on subsearch */