Skip to content
Snippets Groups Projects
Unverified Commit 0b6b79bf authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4661 from JediKev/issue/task-response-with-collabs

issue: Task Response With Collaborators
parents 04255680 70f138b9
No related branches found
No related tags found
No related merge requests found
......@@ -1189,7 +1189,7 @@ class Task extends TaskModel implements RestrictedAccess, Threadable {
global $cfg;
if (!$entry instanceof ThreadEntry
|| !($recipients=$this->getThread()->getParticipants())
|| !($recipients=$this->getThread()->getRecipients())
|| !($dept=$this->getDept())
|| !($tpl=$dept->getTemplate())
|| !($msg=$tpl->getTaskActivityNoticeMsgTemplate())
......
......@@ -263,6 +263,17 @@ implements Searchable {
return $this->_participants;
}
// MailingList of recipients (collaborators)
function getRecipients() {
$list = new MailingList();
if ($collabs = $this->getActiveCollaborators()) {
foreach ($collabs as $c)
$list->addCc($c);
}
return $list;
}
function getReferral($id, $type) {
return $this->referrals->findFirst(array(
......
......@@ -5,6 +5,7 @@ require_once INCLUDE_DIR . 'class.variable.php';
// Used by the email system
interface EmailContact {
function getId();
function getUserId();
function getName();
function getEmail();
}
......@@ -28,6 +29,10 @@ implements EmailContact {
return $this->contact->getId();
}
function getUserId() {
return $this->contact->getUserId();
}
function getEmail() {
return $this->contact->getEmail();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment