Fix get FieldByID spots

This commit is contained in:
johnnyq
2026-07-29 16:16:32 -04:00
parent 7245ff0650
commit 75d8b4d37c
3 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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");

View File

@@ -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");