From: hickert Date: Mon, 4 Apr 2011 10:02:54 +0000 (+0000) Subject: Added current entry X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=217bf4c7bf32d6abc9af95fdaf882a6dbb1e04db;p=gosa.git Added current entry git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20641 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_filterConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_filterConfigManagement.inc index 87697b819..477ab21f5 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_filterConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_filterConfigManagement.inc @@ -16,6 +16,20 @@ class filterConfigManagement { // Add entries $ret = array(); + if($data['path'] != "/root"){ + $back = array(); + $back['dn'] = $data['id']; + $back[] = 'dn'; + $back['cn'] = array('.', 'count' => 1); + $back[] = 'cn'; + $back['description'] = array('.', 'count' => 1); + $back[] = 'description'; + $back['objectClass'] = array('Back', 'count' => 1); + $back[] = 'objectClass'; + $back['count'] = 3; + $ret[] = $back; + } + foreach($data['children'] as $item){ filterDeviceItems::addEntry($ret, $item, $scope == 'sub', $filter); }