Skip to content

Commit

Permalink
Ticketing updates - guest view & resolved vs closed
Browse files Browse the repository at this point in the history
- Swap autclose for resolved to allow temporarily re-opening resolved tickets for 72 hrs after closure
- Add guest view URL for tickets
  • Loading branch information
wrongecho committed Aug 17, 2024
1 parent ad9b69a commit 0025503
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions guest_view_ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
$ticket_id = intval($_GET['ticket_id']);

$ticket_sql = mysqli_query($mysqli,
"SELECT * FROM tickets
LEFT JOIN users on ticket_assigned_to = user_id
LEFT JOIN ticket_statuses ON ticket_status = ticket_status_id
"SELECT * FROM tickets
LEFT JOIN users on ticket_assigned_to = user_id
LEFT JOIN ticket_statuses ON ticket_status = ticket_status_id
WHERE ticket_id = $ticket_id AND ticket_url_key = '$url_key'"
);

Expand Down
6 changes: 3 additions & 3 deletions post/ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,10 @@

// Get contact/ticket details
$sql = mysqli_query($mysqli, "SELECT ticket_prefix, ticket_number, ticket_category, ticket_subject, ticket_details, ticket_priority, ticket_status_name, ticket_url_key, ticket_created_by, ticket_assigned_to, ticket_client_id FROM tickets
LEFT JOIN clients ON ticket_client_id = client_id
LEFT JOIN clients ON ticket_client_id = client_id
LEFT JOIN contacts ON ticket_contact_id = contact_id
LEFT JOIN ticket_statuses ON ticket_status = ticket_status_id
WHERE ticket_id = $ticket_id
LEFT JOIN ticket_statuses ON ticket_status = ticket_status_id
WHERE ticket_id = $ticket_id
AND ticket_closed_at IS NULL");
$row = mysqli_fetch_array($sql);

Expand Down

0 comments on commit 0025503

Please sign in to comment.