mirror of https://github.com/itflow-org/itflow
Bugfix: Ticket edit modal not setting assigned agent
This commit is contained in:
parent
9318f42ce0
commit
ef9436a1fb
|
|
@ -198,6 +198,7 @@ if (isset($_POST['edit_ticket'])) {
|
|||
|
||||
$ticket_id = intval($_POST['ticket_id']);
|
||||
$contact_id = intval($_POST['contact']);
|
||||
$assigned_to = intval($_POST['assigned_to']);
|
||||
$notify = intval($_POST['contact_notify'] ?? 0);
|
||||
$category_id = intval($_POST['category']);
|
||||
$ticket_subject = sanitizeInput($_POST['subject']);
|
||||
|
|
@ -222,7 +223,7 @@ if (isset($_POST['edit_ticket'])) {
|
|||
}
|
||||
}
|
||||
|
||||
mysqli_query($mysqli, "UPDATE tickets SET ticket_category = $category_id, ticket_subject = '$ticket_subject', ticket_priority = '$ticket_priority', ticket_billable = $billable, ticket_details = '$details', ticket_due_at = $due, ticket_vendor_ticket_number = '$vendor_ticket_number', ticket_contact_id = $contact_id, ticket_vendor_id = $vendor_id, ticket_location_id = $location_id, ticket_asset_id = $asset_id, ticket_project_id = $project_id WHERE ticket_id = $ticket_id");
|
||||
mysqli_query($mysqli, "UPDATE tickets SET ticket_category = $category_id, ticket_subject = '$ticket_subject', ticket_priority = '$ticket_priority', ticket_billable = $billable, ticket_details = '$details', ticket_due_at = $due, ticket_vendor_ticket_number = '$vendor_ticket_number', ticket_contact_id = $contact_id, ticket_assigned_to = $assigned_to, ticket_vendor_id = $vendor_id, ticket_location_id = $location_id, ticket_asset_id = $asset_id, ticket_project_id = $project_id WHERE ticket_id = $ticket_id");
|
||||
|
||||
// Add Additional Assets
|
||||
if (isset($_POST['additional_assets'])) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue