Code

Added edit anyawy lock ...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Feb 2006 10:49:52 +0000 (10:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Feb 2006 10:49:52 +0000 (10:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2723 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentManagement.inc

index 2a1e2e523a85bdc5efbe9d061dff3a96d6cc2b7f..89db9a1768caab0ff5cb34db36efbf598b452437 100644 (file)
@@ -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);