Code

Fixed Terminal/Workstation -template string in mangement list.
[gosa.git] / plugins / admin / departments / class_departmentManagement.inc
index 9856fed429bbc4c9b26d60d45b83edbd0fcddedb..b62679e1328e2dcaf80085d4bf400045af6ce586 100644 (file)
@@ -155,7 +155,7 @@ class departmentManagement extends plugin
         return(gen_locked_message($user, $this->dn));
       } else {
         add_lock ($this->dn, $this->ui->dn);
-        $smarty->assign("info", sprintf(_("You're about to delete the whole LDAP subtree placed under '%s'."), LDAP::fix($this->dn)));
+        $smarty->assign("info", sprintf(_("You're about to delete the whole LDAP subtree placed under '%s'."), @LDAP::fix($this->dn)));
         $display.= $smarty->fetch (get_template_path('remove.tpl', TRUE));
         return ($display);
       }
@@ -208,6 +208,11 @@ class departmentManagement extends plugin
 
         /* This var indicated that there is an object which isn't saved right now. */
         $this->ObjectInSaveMode = true;
+      
+        $this->config->get_departments($this->dn);
+        $this->config->make_idepartments();
+
+        $this->DivListDepartment->config=$this->config;
 
       } else {
         /* Ok. There seem to be errors regarding to the tab data,