diff --git a/post/user/ticket.php b/post/user/ticket.php index c6ec6f41..69b1c5fc 100644 --- a/post/user/ticket.php +++ b/post/user/ticket.php @@ -77,17 +77,6 @@ if (isset($_POST['add_ticket'])) { $ticket_id = mysqli_insert_id($mysqli); - // Add Tasks - if (!empty($_POST['tasks'])) { - foreach ($_POST['tasks'] as $task) { - $task_name = sanitizeInput($task); - // Check that task_name is not-empty (For some reason the !empty on the array doesnt work here like in watchers) - if (!empty($task_name)) { - mysqli_query($mysqli,"INSERT INTO tasks SET task_name = '$task_name', task_ticket_id = $ticket_id"); - } - } - } - // Add Tasks from Template if Template was selected if($ticket_template_id) { if (mysqli_num_rows($sql_task_templates) > 0) { diff --git a/ticket_add_modal.php b/ticket_add_modal.php index e0a5ec4f..f85bc32d 100644 --- a/ticket_add_modal.php +++ b/ticket_add_modal.php @@ -20,19 +20,7 @@ Contact