mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 22:40:55 +01:00
Merge branch 'master' into redesign-2015
This commit is contained in:
commit
5f84f14eab
2 changed files with 13 additions and 5 deletions
|
@ -228,9 +228,11 @@ final class PhabricatorCalendarEventSearchEngine
|
|||
case 'day':
|
||||
return $query->setParameter('display', 'day');
|
||||
case 'upcoming':
|
||||
return $query->setParameter('upcoming', array(
|
||||
0 => 'upcoming',
|
||||
));
|
||||
return $query
|
||||
->setParameter('display', 'list')
|
||||
->setParameter('upcoming', array(
|
||||
0 => 'upcoming',
|
||||
));
|
||||
case 'all':
|
||||
return $query;
|
||||
}
|
||||
|
|
|
@ -30,8 +30,14 @@ final class PhabricatorRepositoryPushMailWorker
|
|||
$targets = id(new PhabricatorRepositoryPushReplyHandler())
|
||||
->setMailReceiver($repository)
|
||||
->getMailTargets($email_phids, array());
|
||||
|
||||
$messages = array();
|
||||
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)
|
||||
->setIsBulk(true);
|
||||
|
||||
$target->sendMail($mail);
|
||||
return $target->willSendMail($mail);
|
||||
}
|
||||
|
||||
public function renderForDisplay(PhabricatorUser $viewer) {
|
||||
|
|
Loading…
Reference in a new issue