Code

Fixed Terminal/Workstation -template string in mangement list.
[gosa.git] / plugins / admin / departments / class_departmentManagement.inc
index 947b541af6e40ce03c6911e6b14f4baf36072d67..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,
@@ -303,6 +308,7 @@ class departmentManagement extends plugin
       return ($display);
     }else{
       /* Display dialog with group list */
+      $this->DivListDepartment->parent = $this;
       $this->DivListDepartment->execute();
       $this->reload();
       $this->DivListDepartment->DepartmentsAdded = true;