mirror of
https://github.com/itflow-org/itflow
synced 2026-08-24 00:15:12 +00:00
Fix documents => files redirect after deletion (since we merged these)
This commit is contained in:
@@ -771,7 +771,7 @@ if (isset($_GET['delete_document'])) {
|
|||||||
// If there's a "from" parameter, we can use it to decide where to go
|
// If there's a "from" parameter, we can use it to decide where to go
|
||||||
if (isset($_GET['from']) && $_GET['from'] === 'document_details') {
|
if (isset($_GET['from']) && $_GET['from'] === 'document_details') {
|
||||||
// User deleted from document_details.php
|
// User deleted from document_details.php
|
||||||
redirect("documents.php?client_id=$client_id");
|
redirect("files.php?client_id=$client_id");
|
||||||
} else {
|
} else {
|
||||||
// Default behavior — redirect back to previous page
|
// Default behavior — redirect back to previous page
|
||||||
redirect();
|
redirect();
|
||||||
|
|||||||
Reference in New Issue
Block a user