mirror of
https://github.com/itflow-org/itflow
synced 2026-08-06 23:57:16 +00:00
Fix remaing undefine vars for audits and flash messages
This commit is contained in:
@@ -98,7 +98,7 @@ if (isset($_GET['restore_network'])) {
|
||||
|
||||
mysqli_query($mysqli,"UPDATE networks SET network_archived_at = NULL WHERE network_id = $network_id");
|
||||
|
||||
logAudit("Network", "Restore", "$session_name restored contact $contact_name", $client_id, $network_id);
|
||||
logAudit("Network", "Restore", "$session_name restored network $network_name", $client_id, $network_id);
|
||||
|
||||
flashAlert("Network <strong>$network_name</strong> restored");
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ if (isset($_GET['remove_rack_unit'])) {
|
||||
$unit_id = intval($_GET['remove_rack_unit']);
|
||||
|
||||
// Get Name and Client ID for logging and alert message
|
||||
$sql = mysqli_query($mysqli,"SELECT rack_name, rack_id, rack_client_id FROM racks LEFT JOIN rack_units ON unit_rack_id = rack_id WHERE unit_id = $unit_id");
|
||||
$sql = mysqli_query($mysqli,"SELECT rack_name, rack_id, rack_client_id, unit_device FROM racks LEFT JOIN rack_units ON unit_rack_id = rack_id WHERE unit_id = $unit_id");
|
||||
$row = mysqli_fetch_assoc($sql);
|
||||
$rack_name = escapeSql($row['rack_name']);
|
||||
$unit_device = escapeSql($row['unit_device']);
|
||||
@@ -283,9 +283,9 @@ if (isset($_GET['remove_rack_unit'])) {
|
||||
|
||||
mysqli_query($mysqli,"DELETE FROM rack_units WHERE unit_id = $unit_id");
|
||||
|
||||
logAudit("Rack", "Edit", "$session_name removed device $device_name from rack $rack_name", $client_id, $rack_id);
|
||||
logAudit("Rack", "Edit", "$session_name removed device $unit_device from rack $rack_name", $client_id, $rack_id);
|
||||
|
||||
flashAlert("Device <strong>$device_name</strong> removed from rack", 'error');
|
||||
flashAlert("Device <strong>$unit_device</strong> removed from rack", 'error');
|
||||
|
||||
redirect();
|
||||
|
||||
|
||||
@@ -1246,7 +1246,7 @@ if (isset($_POST['bulk_edit_ticket_category'])) {
|
||||
// Update ticket
|
||||
mysqli_query($mysqli, "UPDATE tickets SET ticket_category = '$category_id' WHERE ticket_id = $ticket_id");
|
||||
|
||||
logAudit("Ticket", "Edit", "$session_name updated the category on ticket $ticket_prefix$ticket_number - $ticket_subject from $previous_category_name to $category_name", $client_id, $ticket_id);
|
||||
logAudit("Ticket", "Edit", "$session_name updated the category on ticket $ticket_prefix$ticket_number - $ticket_subject from $previous_ticket_category_name to $category_name", $client_id, $ticket_id);
|
||||
|
||||
triggerCustomAction('ticket_update', $ticket_id);
|
||||
} // End For Each Ticket ID Loop
|
||||
|
||||
Reference in New Issue
Block a user