Code

Fixed undefined index after moving department
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Feb 2007 10:29:40 +0000 (10:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Feb 2007 10:29:40 +0000 (10:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5681 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentGeneric.inc
plugins/admin/departments/class_departmentManagement.inc

index 31713217b577e5c299f9a8765639f480b99c327e..da4c101b7beeccfc97adc50480725de7ff16889c 100644 (file)
@@ -554,6 +554,7 @@ class department extends plugin
                        /* Remove src_dn */
                        $ldap->cd($src_dn);
                        $ldap->recursive_remove();
+      $this->dn = $this->rec_dst;
                        $this->rec_src = $this->rec_dst = "";
                        $this->rec_cpy =false;
 
index 61b18f59f39104ba54cbb35db0e55f01ab7d6645..2bdcf1b879adea05cf4e60150f35271476b5b97e 100644 (file)
@@ -252,6 +252,7 @@ class departmentManagement extends plugin
     /* initiate recursive remove  (Is called from iframe, generates output)*/
     if(isset($_GET['PerformRecMove'])){
       $this->deptabs->by_object['department']->recursive_move("","",true);
+      $this->DivListDepartment->selectedBase = $this->deptabs->by_object['department']->dn;  
       exit();
     }