diff --git a/CHANGELOG.md b/CHANGELOG.md index 67d55ce5..c930efb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -159,6 +159,8 @@ This file documents all notable changes made to ITFlow. - Certificates can now be searched by description. - Fixed cents calculation rounding. - Fixed guest view credential TOTP display, and removed the legacy OTP code path. +- Deleting a ticket template task or a payment provider recorded the wrong name in the audit log + and the confirmation message, reading an unrelated record's id in place of the name. - Bulk-creating tickets from a template against multiple assets only added the template's tasks to the first ticket, and dropped each task's completion estimate. - Tickets raised by the nightly recurring schedule were created without a guest URL key, so the diff --git a/admin/post/payment_provider.php b/admin/post/payment_provider.php index 54e788b0..d2488496 100644 --- a/admin/post/payment_provider.php +++ b/admin/post/payment_provider.php @@ -71,7 +71,7 @@ if (isset($_GET['delete_payment_provider'])) { // Delete all Saved Cards related // Delete Client Payment Provider Releation - $provider_name = escapeSql(getFieldById('payment_providers', $provider_id, 'provider_name')); + $provider_name = escapeSql(getFieldById('payment_providers', $provider_id, 'payment_provider_name')); // Delete provider mysqli_query($mysqli,"DELETE FROM payment_providers WHERE payment_provider_id = $provider_id"); diff --git a/admin/post/ticket_template.php b/admin/post/ticket_template.php index dd656ddc..24e660f4 100644 --- a/admin/post/ticket_template.php +++ b/admin/post/ticket_template.php @@ -101,7 +101,7 @@ if (isset($_GET['delete_task_template'])) { $task_template_id = intval($_GET['delete_task_template']); - $task_template_name = escapeSql(getFieldById('tags', $task_template_id, 'task_template_name')); + $task_template_name = escapeSql(getFieldById('task_templates', $task_template_id, 'task_template_name')); mysqli_query($mysqli, "DELETE FROM task_templates WHERE task_template_id = $task_template_id");