From: hickert Date: Wed, 22 Feb 2006 10:49:52 +0000 (+0000) Subject: Added edit anyawy lock ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c89d30661e606ca33ea9fb1123a3853b6608b385;p=gosa.git Added edit anyawy lock ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2723 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc index 2a1e2e523..89db9a176 100644 --- a/plugins/admin/departments/class_departmentManagement.inc +++ b/plugins/admin/departments/class_departmentManagement.inc @@ -59,6 +59,8 @@ class departmentManagement extends plugin /* Call parent execute */ plugin::execute(); + $_SESSION['LOCK_VARS_TO_USE'] = array("/^act$/","/^id$/","/^dep_edit_.*/","/^dep_del_.*/"); + /* Reload departments */ $this->config->departments = get_departments(); $smarty = get_smarty(); @@ -151,7 +153,6 @@ class departmentManagement extends plugin * The entry which will be edited is defined in $s_entry */ if ($s_action=="edit"){ - $this->dn= $this->config->departments[trim($s_entry)]; if (($user= get_lock($this->dn)) != ""){ @@ -243,7 +244,7 @@ class departmentManagement extends plugin * Cancel dialog */ if (isset($_POST['edit_cancel']) || isset($_POST['delete_cancel']) || - isset($_POST['delete_department_confirm']) || isset($_POST['delete_lock'])){ + isset($_POST['delete_department_confirm'])){ del_lock ($this->dn); unset($this->depdabs);