Differential D19037 Diff 45649 src/applications/maniphest/xaction/ManiphestTaskMergedIntoTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/xaction/ManiphestTaskMergedIntoTransaction.php
<?php | <?php | ||||
final class ManiphestTaskMergedIntoTransaction | final class ManiphestTaskMergedIntoTransaction | ||||
extends ManiphestTaskTransactionType { | extends ManiphestTaskTransactionType { | ||||
const TRANSACTIONTYPE = 'mergedinto'; | const TRANSACTIONTYPE = 'mergedinto'; | ||||
public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
return null; | return null; | ||||
} | } | ||||
public function applyInternalEffects($object, $value) { | public function applyInternalEffects($object, $value) { | ||||
$object->setStatus(ManiphestTaskStatus::getDuplicateStatus()); | $this->updateStatus($object, ManiphestTaskStatus::getDuplicateStatus()); | ||||
} | } | ||||
public function getActionName() { | public function getActionName() { | ||||
return pht('Merged'); | return pht('Merged'); | ||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
Show All 26 Lines |