diff --git a/admin/post/settings_theme.php b/admin/post/settings_theme.php
index a67388f37..732ede75d 100644
--- a/admin/post/settings_theme.php
+++ b/admin/post/settings_theme.php
@@ -10,7 +10,7 @@ if (isset($_POST['edit_theme_settings'])) {
mysqli_query($mysqli,"UPDATE settings SET config_theme = '$theme' WHERE company_id = 1");
- logAudit("Settings", "Edit", "$session_name edited theme settings $dark_mode");
+ logAudit("Settings", "Edit", "$session_name edited theme settings to $theme");
flashAlert("Changed theme to $theme");
diff --git a/admin/post/ticket_status.php b/admin/post/ticket_status.php
index faf7e454c..b653e0897 100644
--- a/admin/post/ticket_status.php
+++ b/admin/post/ticket_status.php
@@ -61,7 +61,7 @@ if (isset($_GET['delete_ticket_status'])) {
exit("Can't delete built-in statuses");
}
- $ticlet_status_name = escapeSql(getFieldById('ticket_statuses', $ticket_status_id, 'ticket_status_name'));
+ $ticket_status_name = escapeSql(getFieldById('ticket_statuses', $ticket_status_id, 'ticket_status_name'));
mysqli_query($mysqli, "DELETE FROM ticket_statuses WHERE ticket_status_id = $ticket_status_id");
diff --git a/agent/post/network.php b/agent/post/network.php
index 5fcf959f4..f546b8b29 100644
--- a/agent/post/network.php
+++ b/agent/post/network.php
@@ -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 $network_name restored");
diff --git a/agent/post/rack.php b/agent/post/rack.php
index c3f71c2ae..afd5f871a 100644
--- a/agent/post/rack.php
+++ b/agent/post/rack.php
@@ -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 $device_name removed from rack", 'error');
+ flashAlert("Device $unit_device removed from rack", 'error');
redirect();
diff --git a/agent/post/ticket.php b/agent/post/ticket.php
index d5a7840b4..b59372ea3 100644
--- a/agent/post/ticket.php
+++ b/agent/post/ticket.php
@@ -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