From e417badf92a8213c96de6d049d74e573f76be6f3 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Sat, 14 Dec 2024 13:55:39 +0000 Subject: [PATCH] API - New ticket bugfix Ticket status should be 1, not 'New' --- api/v1/tickets/create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/tickets/create.php b/api/v1/tickets/create.php index 5b6d117f9..c69623385 100644 --- a/api/v1/tickets/create.php +++ b/api/v1/tickets/create.php @@ -34,7 +34,7 @@ mysqli_query($mysqli,"UPDATE settings SET config_ticket_next_number = $new_config_ticket_next_number WHERE company_id = 1"); // Insert ticket - $insert_sql = mysqli_query($mysqli,"INSERT INTO tickets SET ticket_prefix = '$config_ticket_prefix', ticket_number = $ticket_number, ticket_subject = '$subject', ticket_details = '$details', ticket_priority = '$priority', ticket_status = 'Open', ticket_vendor_ticket_number = '$vendor_ticket_number', ticket_vendor_id = $vendor_id, ticket_created_by = 0, ticket_assigned_to = $assigned_to, ticket_contact_id = $contact, ticket_client_id = $client_id"); + $insert_sql = mysqli_query($mysqli,"INSERT INTO tickets SET ticket_prefix = '$config_ticket_prefix', ticket_number = $ticket_number, ticket_subject = '$subject', ticket_details = '$details', ticket_priority = '$priority', ticket_status = 1, ticket_vendor_ticket_number = '$vendor_ticket_number', ticket_vendor_id = $vendor_id, ticket_created_by = 0, ticket_assigned_to = $assigned_to, ticket_contact_id = $contact, ticket_client_id = $client_id"); // Check insert & get insert ID if ($insert_sql) {