summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 56f93ad)
raw | patch | inline | side by side (parent: 56f93ad)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 May 2008 13:14:17 +0000 (13:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 May 2008 13:14:17 +0000 (13:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10897 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 1e2ac8abdd74042ce2f6d7d98ec942d3254b33d4..e767dd0d1f34df7278fd817651b2849cdb0fb40e 100644 (file)
msg_dialog::display(_("Permission error"), msgPool::permDelete(), ERROR_DIALOG);
new log("security","fai/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
-
- /* Remove lock file after successfull deletion */
- del_lock ($dn);
- unset($this->dns[$key]);
}
+
+ /* Remove lock file after successfull deletion */
+ $this->remove_lock();
+ $this->dns = array();
}
/* Remove lock */
if(isset($_POST['delete_multiple_fai_object_cancel'])){
- foreach($this->dns as $key => $dn){
- del_lock ($dn);
- unset($this->dns[$key]);
- }
+ $this->dns = array();
+ $this->remove_lock();
}
/* Delete canceled? */
if (isset($_POST['delete_cancel'])){
- del_lock ($this->dn);
+ $this->remove_lock();
}
}else{
msg_dialog::display(_("Error"), sprintf(_("Cannot delete '%s': object does not exist!"), $this->dn) , ERROR_DIALOG);
}
+
/* Remove lock file after successfull deletion */
- del_lock ($this->dn);
+ $this->remove_lock();
}
****************/
if(isset($_POST['edit_cancel'])){
- unset($this->dialog);
$this->dialog=FALSE;
$this->is_dialog = false;
session::un_set('objectinfo');
- del_lock ($this->dn);
+ $this->remove_lock();
}
$this->dialog->save();
FAI::save_release_changes_now();
if (!isset($_POST['edit_apply'])){
- del_lock ($this->dn);
- unset($this->dialog);
+ $this->remove_lock();
$this->dialog=FALSE;
$this->is_dialog=false;
session::un_set('objectinfo');
if (isset($this->dn)){
del_lock ($this->dn);
}
+ if(isset($this->dns) && is_array($this->dns) && count($this->dns)){
+ del_lock ($this->dns);
+ }
}
function get_type($array){