mirror of https://github.com/itflow-org/itflow
Also Delete Documents/Document_id folder during bulk delete
This commit is contained in:
parent
0bdd5784ee
commit
e73af9980e
|
|
@ -703,6 +703,9 @@ if (isset($_POST['bulk_delete_documents'])) {
|
|||
// Delete all versions associated with the master document
|
||||
mysqli_query($mysqli,"DELETE FROM document_versions WHERE document_version_document_id = $document_id");
|
||||
|
||||
// Delete uploads/document/$document_id if exists
|
||||
removeDirectory($_SERVER['DOCUMENT_ROOT'] . "/uploads/documents/" . $document_id);
|
||||
|
||||
logAction("Document", "Delete", "$session_name deleted document $document_name and all versions", $client_id);
|
||||
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 8.9 KiB |
Loading…
Reference in New Issue