mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 11:42:42 +01:00
d6a620be45
Summary: Ref T12671. This modernized Maniphest transactions to modular transactions. Test Plan: - Create Task - Edit Task - Raise Priority - Change Status - Merge as a duplicate - Create Subtask - Claim Task - Assign Project - Move on Workboard - Set a cover image - Assign story points - Change story points - Generate lots via lipsum - Bulk edit tasks - Leave comments - Award Token I'm sure I'm missing something. Reviewers: epriestley Reviewed By: epriestley Subscribers: hazelyang, Korvin Maniphest Tasks: T12671 Differential Revision: https://secure.phabricator.com/D17844
31 lines
607 B
PHP
31 lines
607 B
PHP
<?php
|
|
|
|
final class ManiphestTaskEdgeTransaction
|
|
extends ManiphestTaskTransactionType {
|
|
|
|
const TRANSACTIONTYPE = 'edge';
|
|
|
|
public function generateOldValue($object) {
|
|
return null;
|
|
}
|
|
|
|
public function shouldHide() {
|
|
$commit_phid = $this->getMetadataValue('commitPHID');
|
|
$edge_type = $this->getMetadataValue('edge:type');
|
|
|
|
if ($edge_type == ManiphestTaskHasCommitEdgeType::EDGECONST) {
|
|
if ($commit_phid) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
public function getActionName() {
|
|
return pht('Attached');
|
|
}
|
|
|
|
public function getIcon() {
|
|
return 'fa-thumb-tack';
|
|
}
|
|
|
|
}
|