Code

Fixed locking
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Apr 2007 10:55:37 +0000 (10:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Apr 2007 10:55:37 +0000 (10:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6068 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/class_userManagement.inc
plugins/admin/users/remove.tpl

index 2a79cf9b64e7c4d045d127ee380c527c59db16f4..ff480bea78b3e5365e3b03679a7377afa3b95b1a 100644 (file)
@@ -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
      ********************/
index eb78a09b344cce495988267827d908e46a26e7a0..eb414716654e77f8ed0224cf391ed06ed1d6bc93 100644 (file)
 <p class="plugbottom">
   {if $multiple}
   <input type=submit name="delete_multiple_user_confirm" value="{t}Delete{/t}">
+  <input type=submit name="delete_multiple_user_cancel" value="{t}Cancel{/t}">
   {else}
   <input type=submit name="delete_user_confirm" value="{t}Delete{/t}">
+  <input type=submit name="delete_cancel" value="{t}Cancel{/t}">
   {/if}
   &nbsp;
-  <input type=submit name="delete_cancel" value="{t}Cancel{/t}">
 </p>