Do not change ticket status upon ticket reply, just update the ticket update timestamp

This commit is contained in:
johnnyq 2023-09-18 18:51:54 -04:00
parent 2e12c3e9c1
commit f2a3c54ed7
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ function addReply($from_email, $date, $subject, $ticket_number, $message, $attac
}
// Update Ticket Last Response Field & set ticket to open as client has replied
mysqli_query($mysqli, "UPDATE tickets SET ticket_status = 'Open' WHERE ticket_id = $ticket_id AND ticket_client_id = $client_id LIMIT 1");
mysqli_query($mysqli, "UPDATE tickets SET ticket_updated_at = NOW() WHERE ticket_id = $ticket_id AND ticket_client_id = $client_id LIMIT 1");
echo "Updated existing ticket.<br>";
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Ticket', log_action = 'Update', log_description = 'Email parser: Client contact $from_email updated ticket $config_ticket_prefix$ticket_number ($subject)', log_client_id = $client_id");

View File

@ -186,7 +186,7 @@
<!-- /.sidebar-menu -->
<div class="sidebar-custom mb-3">
</div>
</div>