From c5288f9e3087cb041c2edcf24c6285ee53d0612b Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 3 Aug 2026 15:34:18 -0400 Subject: [PATCH] Fix undefined variables in expense, asset and contact audit/flash messages --- agent/post/asset.php | 2 +- agent/post/contact.php | 2 +- agent/post/expense.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/post/asset.php b/agent/post/asset.php index b82a07f4a..b9be4e687 100644 --- a/agent/post/asset.php +++ b/agent/post/asset.php @@ -953,7 +953,7 @@ if (isset($_POST['link_asset_to_credential'])) { logAudit("Credential", "Link", "$session_name linked credential $credential_name to asset $asset_name", $client_id, $credential_id); - flashAlert("Asset $asset_name linked with credential $crdential_name"); + flashAlert("Asset $asset_name linked with credential $credential_name"); redirect(); diff --git a/agent/post/contact.php b/agent/post/contact.php index adb4cc49e..2a8ff379c 100644 --- a/agent/post/contact.php +++ b/agent/post/contact.php @@ -374,7 +374,7 @@ if (isset($_POST['bulk_assign_contact_location'])) { mysqli_query($mysqli,"UPDATE contacts SET contact_location_id = $location_id WHERE contact_id = $contact_id"); - logAudit("Contact", "Edit", "$session_name assigned $contaxt_name to location $location_name", $client_id, $contact_id); + logAudit("Contact", "Edit", "$session_name assigned $contact_name to location $location_name", $client_id, $contact_id); } // End Assign Location Loop diff --git a/agent/post/expense.php b/agent/post/expense.php index 317be59d6..213a1b737 100644 --- a/agent/post/expense.php +++ b/agent/post/expense.php @@ -203,7 +203,7 @@ if (isset($_POST['bulk_edit_expense_account'])) { mysqli_query($mysqli,"UPDATE expenses SET expense_account_id = $account_id WHERE expense_id = $expense_id"); - logAudit("Expense", "Edit", "$session_name assigned expense $expense_descritpion to account $account_name", $client_id, $expense_id); + logAudit("Expense", "Edit", "$session_name assigned expense $expense_description to account $account_name", $client_id, $expense_id); } // End Assign Loop @@ -247,7 +247,7 @@ if (isset($_POST['bulk_edit_expense_client'])) { } // End Assign Loop - flashAlert("You assigned Client $client_name to $expense_count expenses"); + flashAlert("You assigned client $client_name to $count expense(s)"); } redirect();