Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestEditEngine.php
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | protected function buildCustomEditFields($object) { | ||||
| if ($owner_phid) { | if ($owner_phid) { | ||||
| $owner_value = array($owner_phid); | $owner_value = array($owner_phid); | ||||
| } else { | } else { | ||||
| $owner_value = array(); | $owner_value = array(); | ||||
| } | } | ||||
| $priority_map = ManiphestTaskPriority::getTaskPriorityMap(); | $priority_map = ManiphestTaskPriority::getTaskPriorityMap(); | ||||
| // TODO: Restore these or toss them: | |||||
| // - Require a single owner. | |||||
| // - Default owner to viewer. | |||||
| // - Don't show "change status" for closed tasks. | |||||
| // - Don't show "change owner" for closed tasks. | |||||
| // - Don't let users change a task status to "Duplicate". | |||||
| // - Make sure "Quote" works. | |||||
| // - When closing an unassigned task, assign the closing user. | |||||
| // - Make sure implicit CCs on actions are working reasonably. | |||||
| return array( | return array( | ||||
| id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
| ->setKey('title') | ->setKey('title') | ||||
| ->setLabel(pht('Title')) | ->setLabel(pht('Title')) | ||||
| ->setDescription(pht('Name of the paste.')) | ->setDescription(pht('Name of the task.')) | ||||
| ->setTransactionType(ManiphestTransaction::TYPE_TITLE) | ->setTransactionType(ManiphestTransaction::TYPE_TITLE) | ||||
| ->setIsRequired(true) | ->setIsRequired(true) | ||||
| ->setValue($object->getTitle()), | ->setValue($object->getTitle()), | ||||
| id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
| ->setKey('status') | ->setKey('status') | ||||
| ->setLabel(pht('Status')) | ->setLabel(pht('Status')) | ||||
| ->setDescription(pht('Status of the task.')) | ->setDescription(pht('Status of the task.')) | ||||
| ->setTransactionType(ManiphestTransaction::TYPE_STATUS) | ->setTransactionType(ManiphestTransaction::TYPE_STATUS) | ||||
| Show All 31 Lines | |||||