Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransaction.php
| Show All 26 Lines | protected function newFallbackModularTransactionType() { | ||||
| // without doing a migration. At some point, we should do a migration and | // without doing a migration. At some point, we should do a migration and | ||||
| // throw this away. | // throw this away. | ||||
| $xaction_type = $this->getTransactionType(); | $xaction_type = $this->getTransactionType(); | ||||
| if ($xaction_type == PhabricatorTransactions::TYPE_CUSTOMFIELD) { | if ($xaction_type == PhabricatorTransactions::TYPE_CUSTOMFIELD) { | ||||
| switch ($this->getMetadataValue('customfield:key')) { | switch ($this->getMetadataValue('customfield:key')) { | ||||
| case 'differential:title': | case 'differential:title': | ||||
| return new DifferentialRevisionTitleTransaction(); | return new DifferentialRevisionTitleTransaction(); | ||||
| case 'differential:test-plan': | |||||
| return new DifferentialRevisionTestPlanTransaction(); | |||||
| } | } | ||||
| } | } | ||||
| return parent::newFallbackModularTransactionType(); | return parent::newFallbackModularTransactionType(); | ||||
| } | } | ||||
| public function setIsCommandeerSideEffect($is_side_effect) { | public function setIsCommandeerSideEffect($is_side_effect) { | ||||
| ▲ Show 20 Lines • Show All 646 Lines • Show Last 20 Lines | |||||