From 8d00d8e1ac662b1c342b6c601c304469b00a85e5 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Mon, 29 Feb 2016 06:12:09 +0000 Subject: [PATCH] bug: New message auto response on new ticket Do not send out new message auto-response to ticket owner as well as collaborators on new ticket. --- include/class.ticket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index 6d68aae89..7876ab4c7 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -2302,9 +2302,9 @@ implements RestrictedAccess, Threadable { if ($autorespond && $message->isBounceOrAutoReply()) $autorespond = false; - $this->onMessage($message, $autorespond); //must be called b4 sending alerts to staff. + $this->onMessage($message, ($autorespond && $alerts)); //must be called b4 sending alerts to staff. - if ($autorespond && $cfg && $cfg->notifyCollabsONNewMessage()) + if ($autorespond && $alerts && $cfg && $cfg->notifyCollabsONNewMessage()) $this->notifyCollaborators($message, array('signature' => '')); if (!($alerts && $autorespond)) -- GitLab