Skip to content

Commit 1a8232f

Browse files
author
epriestley
committedOct 23, 2012
Fix an issue where excluded recipients are not respected
Summary: I broke this in D3778. We modify `$parameters` and then ignore it in favor of `$params` for the rest of the method. Unit tests work great since they're one level below this. Test Plan: Verified "Send email about my own actions" behaved correctly. Reviewers: vrana, btrahan Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D3796
1 parent 3ffc764 commit 1a8232f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎src/applications/metamta/storage/PhabricatorMetaMTAMail.php

+5-6
Original file line numberDiff line numberDiff line change
@@ -342,21 +342,21 @@ public function sendNow(
342342
}
343343

344344
try {
345-
$parameters = $this->parameters;
345+
$params = $this->parameters;
346346
$phids = array();
347347

348-
foreach ($parameters as $key => $value) {
348+
foreach ($params as $key => $value) {
349349
switch ($key) {
350350
case 'to':
351-
$parameters[$key] = $this->buildToList();
351+
$params[$key] = $this->buildToList();
352352
break;
353353
case 'cc':
354-
$parameters[$key] = $this->buildCCList();
354+
$params[$key] = $this->buildCCList();
355355
break;
356356
}
357357
}
358358

359-
foreach ($parameters as $key => $value) {
359+
foreach ($params as $key => $value) {
360360
switch ($key) {
361361
case 'from':
362362
$value = array($value);
@@ -373,7 +373,6 @@ public function sendNow(
373373

374374
$this->loadEmailAndNameDataFromPHIDs($phids);
375375

376-
$params = $this->parameters;
377376
$default = PhabricatorEnv::getEnvConfig('metamta.default-address');
378377
if (empty($params['from'])) {
379378
$mailer->setFrom($default);

0 commit comments

Comments
 (0)
Failed to load comments.