Skip to content
Snippets Groups Projects
Commit 68bb27ff authored by Peter Rotich's avatar Peter Rotich
Browse files

Disable alerts to staff on auto-reply

The concern here is possible loop when an alert to staff bounces back to the
system.
parent d8292800
No related branches found
No related tags found
No related merge requests found
...@@ -2166,6 +2166,11 @@ class Ticket { ...@@ -2166,6 +2166,11 @@ class Ticket {
if($autorespond && $dept && !$dept->autoRespONNewTicket()) if($autorespond && $dept && !$dept->autoRespONNewTicket())
$autorespond=false; $autorespond=false;
//Don't send alerts to staff when the message is an auto reply
// this is necessary to avoid possible loop (especially on new ticket)
if ($alertstaff && $message->isAutoReply())
$alertstaff = false;
/***** See if we need to send some alerts ****/ /***** See if we need to send some alerts ****/
$ticket->onNewTicket($message, $autorespond, $alertstaff); $ticket->onNewTicket($message, $autorespond, $alertstaff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment