mirror of
https://github.com/itflow-org/itflow
synced 2026-11-22 04:17:24 +00:00
Undo: the message after archiving, a move or a bulk change has Undo, which puts it back as it was unless it changed since, and archiving no longer asks first except for clients; covers archiving every kind on Archived with contact roles, document links and a client's recurring invoices, file, document, folder and rack moves, and the bulk changes that set a field on tickets, assets, contacts, clients, projects, invoices, products and IP addresses
This commit is contained in:
@@ -132,6 +132,9 @@ if (isset($_POST['move_folder'])) {
|
||||
logAudit("Folder", "Move", "$session_name moved folder " . escapeSql($folder_name) . " into " . escapeSql($parent_name), $client_id, $folder_id);
|
||||
|
||||
flashAlert("Folder <strong>$folder_name</strong> moved into <strong>$parent_name</strong>");
|
||||
$parent_before = intval($tree[$folder_id]['parent_folder'] ?? 0);
|
||||
undoOffer("Folder <strong>" . escapeHtml($folder_name) . "</strong> is back in <strong>" . escapeHtml(folderDisplayName($parent_before)) . "</strong>",
|
||||
[['folder', $folder_id, $parent_before, $parent_folder, $client_id]], 'module_support');
|
||||
|
||||
redirect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user