Code

Added current entry
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Apr 2011 10:02:54 +0000 (10:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Apr 2011 10:02:54 +0000 (10:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20641 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/class_filterConfigManagement.inc

index 87697b8198420c689c2946a4df4d80df8877f748..477ab21f5b14bf2981b25c58d22bfc3478ec51d2 100644 (file)
@@ -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);
         }