From 2cb3101acb53ee277c9fe6a31b2f9be4c20a98ba Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 17 Apr 2007 10:55:37 +0000 Subject: [PATCH] Fixed locking git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6068 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 14 ++++++++++++++ plugins/admin/users/remove.tpl | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 2a79cf9b6..ff480bea7 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -345,10 +345,24 @@ class userManagement extends plugin } /* Remove lock file after successfull deletion */ del_lock ($dn); + unset($this->dns[$key]); } } + /******************** + Delete MULTIPLE entries Canceled + ********************/ + + /* Remove lock */ + if(isset($_POST['delete_multiple_user_cancel'])){ + foreach($this->dns as $key => $dn){ + del_lock ($dn); + unset($this->dns[$key]); + } + } + + /******************** Delete entry requested, display confirm dialog ********************/ diff --git a/plugins/admin/users/remove.tpl b/plugins/admin/users/remove.tpl index eb78a09b3..eb4147166 100644 --- a/plugins/admin/users/remove.tpl +++ b/plugins/admin/users/remove.tpl @@ -13,10 +13,11 @@

{if $multiple} + {else} + {/if}   -

-- 2.30.2