Code

Added some comments.
[gosa.git] / gosa-core / plugins / admin / departments / class_departmentGeneric.inc
index c5f5e01432d6c6135c16fe77026c84d8b7e24df6..78e514f1e2af041e3b302cd4d85cb3c5cc4e9713 100644 (file)
@@ -36,7 +36,7 @@ class department extends plugin
        var $gosaUnitTag= "";
   var $view_logged = FALSE;
 
-  var $type ="ou";
+  var $type ="organizationalUnit";
   var $namingAttr = "ou";
 
        /* Headpage attributes */
@@ -209,7 +209,7 @@ class department extends plugin
     $dep_types = departmentManagement::get_support_departments();
     $tpl ="";
     foreach($dep_types as $key => $data){
-      if($data['ATTR'] == $this->type){
+      if($data['OC'] == $this->type){
         $tpl = $data['TPL'];
         break;
       }
@@ -284,8 +284,8 @@ class department extends plugin
         }
       }
 
-      /* If this is the root directory service entry (rootDSE)
-         then avoid changing the naming attribute of this entry.
+      /* If this is the root directory service entry then avoid
+         changing the naming attribute of this entry.
        */
       if($this->dn == $this->config->current['BASE']){
         $this->$nA = $old_nA;