Differential D18627 Diff 44739 src/applications/differential/customfield/DifferentialTestPlanField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialTestPlanField.php
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public function shouldAppearInTransactionMail() { | ||||
return true; | return true; | ||||
} | } | ||||
public function updateTransactionMailBody( | public function updateTransactionMailBody( | ||||
PhabricatorMetaMTAMailBody $body, | PhabricatorMetaMTAMailBody $body, | ||||
PhabricatorApplicationTransactionEditor $editor, | PhabricatorApplicationTransactionEditor $editor, | ||||
array $xactions) { | array $xactions) { | ||||
if (!$editor->getIsNewObject()) { | if (!$editor->isFirstBroadcast()) { | ||||
return; | return; | ||||
} | } | ||||
$test_plan = $this->getValue(); | $test_plan = $this->getValue(); | ||||
if (!strlen(trim($test_plan))) { | if (!strlen(trim($test_plan))) { | ||||
return; | return; | ||||
} | } | ||||
$body->addRemarkupSection(pht('TEST PLAN'), $test_plan); | $body->addRemarkupSection(pht('TEST PLAN'), $test_plan); | ||||
} | } | ||||
} | } |