diff --git a/include/class.ticket.php b/include/class.ticket.php index 6895c5806d3ebbaef76184d54e18fe488dc275ce..f72b6338e7c1dcf3c5fd6ad691e4a17aee2b14e5 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -1721,8 +1721,12 @@ class Ticket { //Assigned staff if any...could be the last respondent - if($this->isAssigned() && ($staff=$this->getStaff())) - $recipients[]=$staff; + if ($this->isAssigned()) { + if ($staff = $this->getStaff()) + $recipients[] = $staff; + elseif ($team = $this->getTeam()) + $recipients = array_merge($recipients, $team->getMembers()); + } //Dept manager if($cfg->alertDeptManagerONNewMessage() && $dept && ($manager=$dept->getManager()))