mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 21:10:56 +01:00
Don't output empty summary in e-mails
Summary: Reviews with empty summary are rendered like this: Reviewers: ... TEST PLAN Test Plan: Use empty summary. Use non-empty summary. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1528
This commit is contained in:
parent
7bee68a763
commit
deed4ffed0
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Copyright 2011 Facebook, Inc.
|
||||
* Copyright 2012 Facebook, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -50,8 +50,10 @@ abstract class DifferentialReviewRequestMail extends DifferentialMail {
|
|||
|
||||
$body = array();
|
||||
if ($this->isFirstMailToRecipients()) {
|
||||
$body[] = $this->formatText($revision->getSummary());
|
||||
$body[] = null;
|
||||
if ($revision->getSummary() != '') {
|
||||
$body[] = $this->formatText($revision->getSummary());
|
||||
$body[] = null;
|
||||
}
|
||||
|
||||
$body[] = 'TEST PLAN';
|
||||
$body[] = $this->formatText($revision->getTestPlan());
|
||||
|
|
Loading…
Reference in a new issue