From e8b176bc65ed2c574b8b74299ecb85c985ce759a Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 Jul 2006 08:10:05 +0000 Subject: [PATCH] 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 --- plugins/admin/departments/class_departmentManagement.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.30.2