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

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