Differential D8531 Diff 20254 src/applications/differential/editor/DifferentialTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialTransactionEditor.php
Show First 20 Lines • Show All 1,038 Lines • ▼ Show 20 Lines | |||||
protected function buildMailBody( | protected function buildMailBody( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
array $xactions) { | array $xactions) { | ||||
$body = parent::buildMailBody($object, $xactions); | $body = parent::buildMailBody($object, $xactions); | ||||
if ($this->getIsNewObject()) { | if ($this->getIsNewObject()) { | ||||
$summary = $object->getSummary(); | |||||
if (strlen(trim($summary))) { | |||||
$body->addTextSection( | $body->addTextSection( | ||||
pht('REVISION SUMMARY'), | pht('REVISION SUMMARY'), | ||||
$object->getSummary()); | $summary); | ||||
} | |||||
$test_plan = $object->getTestPlan(); | |||||
if (strlen(trim($test_plan))) { | |||||
$body->addTextSection( | |||||
pht('TEST PLAN'), | |||||
$test_plan); | |||||
} | |||||
} | } | ||||
$type_inline = DifferentialTransaction::TYPE_INLINE; | $type_inline = DifferentialTransaction::TYPE_INLINE; | ||||
$inlines = array(); | $inlines = array(); | ||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
if ($xaction->getTransactionType() == $type_inline) { | if ($xaction->getTransactionType() == $type_inline) { | ||||
$inlines[] = $xaction; | $inlines[] = $xaction; | ||||
▲ Show 20 Lines • Show All 586 Lines • Show Last 20 Lines |