mirror of
https://github.com/itflow-org/itflow
synced 2026-08-06 23:57:16 +00:00
Fix undefined variables in expense, asset and contact audit/flash messages
This commit is contained in:
@@ -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 <strong>$asset_name</strong> linked with credential <strong>$crdential_name</strong>");
|
||||
flashAlert("Asset <strong>$asset_name</strong> linked with credential <strong>$credential_name</strong>");
|
||||
|
||||
redirect();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 <b>$client_name</b> to <b>$expense_count</b> expenses");
|
||||
flashAlert("You assigned client <strong>$client_name</strong> to <strong>$count</strong> expense(s)");
|
||||
}
|
||||
|
||||
redirect();
|
||||
|
||||
Reference in New Issue
Block a user