mirror of
https://github.com/itflow-org/itflow
synced 2026-08-10 17:47:16 +00:00
do not update ticket status in history if it is the same
This commit is contained in:
@@ -356,7 +356,10 @@ function addReply($from_email, $date, $subject, $ticket_number, $message, $attac
|
||||
mysqli_query($mysqli, "UPDATE tickets SET ticket_status = 2, ticket_resolved_at = NULL WHERE ticket_id = $ticket_id AND ticket_client_id = $client_id LIMIT 1");
|
||||
resetTicketResolutionSla($ticket_id);
|
||||
|
||||
logTicketHistory($ticket_id, "$from_email_esc replied by email, reopening the ticket");
|
||||
// Only record the reopen when the ticket was not already open
|
||||
if (intval($ticket_status) !== 2) {
|
||||
logTicketHistory($ticket_id, "$from_email_esc replied by email, reopening the ticket");
|
||||
}
|
||||
|
||||
logAudit("Ticket", "Edit", "Email parser: Client contact $from_email_esc updated ticket $config_ticket_prefix$ticket_number_esc ($subject)", $client_id, $ticket_id);
|
||||
triggerCustomAction('ticket_reply_client', $ticket_id);
|
||||
|
||||
Reference in New Issue
Block a user