Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransaction.php
| Show All 31 Lines | protected function newFallbackModularTransactionType() { | ||||
| $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': | case 'differential:test-plan': | ||||
| return new DifferentialRevisionTestPlanTransaction(); | return new DifferentialRevisionTestPlanTransaction(); | ||||
| case 'differential:repository': | |||||
| return new DifferentialRevisionRepositoryTransaction(); | |||||
| } | } | ||||
| } | } | ||||
| 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 | |||||