Skip to content
Snippets Groups Projects
Commit b7e75b1e authored by Jared Hancock's avatar Jared Hancock
Browse files

alerts: Include team members on new message alert

This fixes a slight issue where the team members would never be included on
the new message alert. Now, the system will send to either the assigned
staff member, if any, or the members of the assigned team, again, if any.
parent 98caa704
No related branches found
No related tags found
No related merge requests found
...@@ -1721,8 +1721,12 @@ class Ticket { ...@@ -1721,8 +1721,12 @@ class Ticket {
//Assigned staff if any...could be the last respondent //Assigned staff if any...could be the last respondent
if($this->isAssigned() && ($staff=$this->getStaff())) if ($this->isAssigned()) {
$recipients[]=$staff; if ($staff = $this->getStaff())
$recipients[] = $staff;
elseif ($team = $this->getTeam())
$recipients = array_merge($recipients, $team->getMembers());
}
//Dept manager //Dept manager
if($cfg->alertDeptManagerONNewMessage() && $dept && ($manager=$dept->getManager())) if($cfg->alertDeptManagerONNewMessage() && $dept && ($manager=$dept->getManager()))
......
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