Clean up Maniphest email "to"
Summary: We currently try to send Maniphest email "To" the owner and actor, but for unassigned tasks there is no owner. Just filter the PHIDs in the parent, since it's reasonable for subclasses to be liberal about construction here. Test Plan: Commented on an unassigned task, got an email without a bogus "To". Reviewers: btrahan, asherkin Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7129
This commit is contained in:
@@ -1205,8 +1205,8 @@ abstract class PhabricatorApplicationTransactionEditor
|
||||
PhabricatorLiskDAO $object,
|
||||
array $xactions) {
|
||||
|
||||
$email_to = array_unique($this->getMailTo($object));
|
||||
$email_cc = array_unique($this->getMailCC($object));
|
||||
$email_to = array_filter(array_unique($this->getMailTo($object)));
|
||||
$email_cc = array_filter(array_unique($this->getMailCC($object)));
|
||||
|
||||
$phids = array_merge($email_to, $email_cc);
|
||||
$handles = id(new PhabricatorHandleQuery())
|
||||
|
||||
Reference in New Issue
Block a user