mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Also Delete Documents/Document_id folder during bulk delete
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user