1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 15:00:58 +01:00

Merge branch 'master' into redesign-2015

This commit is contained in:
epriestley 2015-06-25 15:55:04 -07:00
commit 5f84f14eab
2 changed files with 13 additions and 5 deletions

View file

@ -228,7 +228,9 @@ final class PhabricatorCalendarEventSearchEngine
case 'day': case 'day':
return $query->setParameter('display', 'day'); return $query->setParameter('display', 'day');
case 'upcoming': case 'upcoming':
return $query->setParameter('upcoming', array( return $query
->setParameter('display', 'list')
->setParameter('upcoming', array(
0 => 'upcoming', 0 => 'upcoming',
)); ));
case 'all': case 'all':

View file

@ -30,8 +30,14 @@ final class PhabricatorRepositoryPushMailWorker
$targets = id(new PhabricatorRepositoryPushReplyHandler()) $targets = id(new PhabricatorRepositoryPushReplyHandler())
->setMailReceiver($repository) ->setMailReceiver($repository)
->getMailTargets($email_phids, array()); ->getMailTargets($email_phids, array());
$messages = array();
foreach ($targets as $target) { foreach ($targets as $target) {
$this->sendMail($target, $repository, $event); $messages[] = $this->sendMail($target, $repository, $event);
}
foreach ($messages as $message) {
$message->save();
} }
} }
@ -121,7 +127,7 @@ final class PhabricatorRepositoryPushMailWorker
->addHeader('Thread-Topic', $subject) ->addHeader('Thread-Topic', $subject)
->setIsBulk(true); ->setIsBulk(true);
$target->sendMail($mail); return $target->willSendMail($mail);
} }
public function renderForDisplay(PhabricatorUser $viewer) { public function renderForDisplay(PhabricatorUser $viewer) {