From 2745d40d119660ac8110849a39cbbdd6835924e6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 2 Feb 2007 10:29:40 +0000 Subject: [PATCH] Fixed undefined index after moving department git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5681 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/departments/class_departmentGeneric.inc | 1 + plugins/admin/departments/class_departmentManagement.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc index 31713217b..da4c101b7 100644 --- a/plugins/admin/departments/class_departmentGeneric.inc +++ b/plugins/admin/departments/class_departmentGeneric.inc @@ -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; diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc index 61b18f59f..2bdcf1b87 100644 --- a/plugins/admin/departments/class_departmentManagement.inc +++ b/plugins/admin/departments/class_departmentManagement.inc @@ -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(); } -- 2.30.2