1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 02:32:42 +01:00

Don't send empty testplan in e-mail

Summary: Allowed after D2193.

Test Plan: Disable `differential.require-test-plan-field`, create diff without test plan.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran

Differential Revision: https://secure.phabricator.com/D2252
This commit is contained in:
vrana 2012-04-17 00:09:53 -07:00
parent fbfccf5ddc
commit dd7087f4db

View file

@ -56,9 +56,11 @@ abstract class DifferentialReviewRequestMail extends DifferentialMail {
$body[] = null; $body[] = null;
} }
$body[] = 'TEST PLAN'; if ($revision->getTestPlan() != '') {
$body[] = $this->formatText($revision->getTestPlan()); $body[] = 'TEST PLAN';
$body[] = null; $body[] = $this->formatText($revision->getTestPlan());
$body[] = null;
}
} else { } else {
if (strlen($this->getComments())) { if (strlen($this->getComments())) {
$body[] = $this->formatText($this->getComments()); $body[] = $this->formatText($this->getComments());