mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-21 11:09:02 +01:00
Always show "Change Priority" Maniphest stacked action, even for closed tasks
Summary: Ref T10004. Test Plan: Changed priority of closed and open tasks. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10004 Differential Revision: https://secure.phabricator.com/D14865
This commit is contained in:
parent
f422c9b955
commit
9a99c0fbde
1 changed files with 1 additions and 3 deletions
|
@ -66,10 +66,8 @@ final class ManiphestEditEngine
|
||||||
$priority_map = $this->getTaskPriorityMap($object);
|
$priority_map = $this->getTaskPriorityMap($object);
|
||||||
|
|
||||||
if ($object->isClosed()) {
|
if ($object->isClosed()) {
|
||||||
$priority_label = null;
|
|
||||||
$default_status = ManiphestTaskStatus::getDefaultStatus();
|
$default_status = ManiphestTaskStatus::getDefaultStatus();
|
||||||
} else {
|
} else {
|
||||||
$priority_label = pht('Change Priority');
|
|
||||||
$default_status = ManiphestTaskStatus::getDefaultClosedStatus();
|
$default_status = ManiphestTaskStatus::getDefaultClosedStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +148,7 @@ final class ManiphestEditEngine
|
||||||
->setIsCopyable(true)
|
->setIsCopyable(true)
|
||||||
->setValue($object->getPriority())
|
->setValue($object->getPriority())
|
||||||
->setOptions($priority_map)
|
->setOptions($priority_map)
|
||||||
->setCommentActionLabel($priority_label),
|
->setCommentActionLabel(pht('Change Priority')),
|
||||||
id(new PhabricatorRemarkupEditField())
|
id(new PhabricatorRemarkupEditField())
|
||||||
->setKey('description')
|
->setKey('description')
|
||||||
->setLabel(pht('Description'))
|
->setLabel(pht('Description'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue