From f526e908c316eaa3a9c79a2684c03a2446f8628d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 8 Apr 2024 20:23:23 -0400 Subject: [PATCH] Fix Bug where it doesnt add the tasks from a ticket template, this was due to the removal of task_description --- post/ticket.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/post/ticket.php b/post/ticket.php index 8865c84e..71f90611 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -90,9 +90,8 @@ 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_description = sanitizeInput($row['task_description']); - mysqli_query($mysqli,"INSERT INTO tasks SET task_name = '$task_name', task_description = '$task_description', 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_ticket_id = $ticket_id"); } } }