Fix Bug where it doesnt add the tasks from a ticket template, this was due to the removal of task_description

This commit is contained in:
johnnyq 2024-04-08 20:23:23 -04:00
parent 199185a279
commit f526e908c3
1 changed files with 1 additions and 2 deletions

View File

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