mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +01:00
Allow "Assign/Claim" stacked action on closed tasks
Summary: Ref T9908. Now that you can submit multiple actions, you can "Open + Assign/Claim" a closed task, which is a reasonable action. Test Plan: Assign/claim'd a closed task. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9908 Differential Revision: https://secure.phabricator.com/D14692
This commit is contained in:
parent
5caee3521e
commit
c2d0c33e75
1 changed files with 1 additions and 3 deletions
|
@ -56,11 +56,9 @@ final class ManiphestEditEngine
|
|||
|
||||
if ($object->isClosed()) {
|
||||
$priority_label = null;
|
||||
$owner_label = null;
|
||||
$default_status = ManiphestTaskStatus::getDefaultStatus();
|
||||
} else {
|
||||
$priority_label = pht('Change Priority');
|
||||
$owner_label = pht('Assign / Claim');
|
||||
$default_status = ManiphestTaskStatus::getDefaultClosedStatus();
|
||||
}
|
||||
|
||||
|
@ -94,7 +92,7 @@ final class ManiphestEditEngine
|
|||
->setDescription(pht('User who is responsible for the task.'))
|
||||
->setTransactionType(ManiphestTransaction::TYPE_OWNER)
|
||||
->setSingleValue($object->getOwnerPHID())
|
||||
->setCommentActionLabel($owner_label)
|
||||
->setCommentActionLabel(pht('Assign / Claim'))
|
||||
->setCommentActionDefaultValue($owner_value),
|
||||
id(new PhabricatorSelectEditField())
|
||||
->setKey('priority')
|
||||
|
|
Loading…
Reference in a new issue