From aa2e0ed5c518bc562285e92bbb863afbfb80e018 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 23 Oct 2024 14:13:05 -0400 Subject: [PATCH] carry over the Task Completion estimate When creating a new ticket from a template --- post/user/ticket.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/post/user/ticket.php b/post/user/ticket.php index 19d885ba..7f07078b 100644 --- a/post/user/ticket.php +++ b/post/user/ticket.php @@ -69,8 +69,9 @@ if (isset($_POST['add_ticket'])) { while ($row = mysqli_fetch_array($sql_task_templates)) { $task_order = intval($row['task_template_order']); $task_name = sanitizeInput($row['task_template_name']); + $task_completion_estimate = intval($row['task_template_completion_estimate']); - mysqli_query($mysqli,"INSERT INTO tasks SET task_name = '$task_name', task_order = $task_order, task_ticket_id = $ticket_id"); + mysqli_query($mysqli,"INSERT INTO tasks SET task_name = '$task_name', task_order = $task_order, task_completion_estimate = $task_completion_estimate, task_ticket_id = $ticket_id"); } } }