Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestEditEngine.php
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | protected function buildCustomEditFields($object) { | ||||
$status_map = ManiphestTaskStatus::getTaskStatusMap(); | $status_map = ManiphestTaskStatus::getTaskStatusMap(); | ||||
$dup_status = ManiphestTaskStatus::getDuplicateStatus(); | $dup_status = ManiphestTaskStatus::getDuplicateStatus(); | ||||
if ($object->getStatus() != $dup_status) { | if ($object->getStatus() != $dup_status) { | ||||
unset($status_map[$dup_status]); | unset($status_map[$dup_status]); | ||||
} | } | ||||
$priority_map = ManiphestTaskPriority::getTaskPriorityMap(); | $priority_map = ManiphestTaskPriority::getTaskPriorityMap(); | ||||
// TODO: Restore these or toss them: | |||||
// - When closing an unassigned task, assign the closing user. | |||||
// - Make sure implicit CCs on actions are working reasonably. | |||||
if ($object->isClosed()) { | if ($object->isClosed()) { | ||||
$priority_label = null; | $priority_label = null; | ||||
$owner_label = null; | $owner_label = null; | ||||
$default_status = ManiphestTaskStatus::getDefaultStatus(); | $default_status = ManiphestTaskStatus::getDefaultStatus(); | ||||
} else { | } else { | ||||
$priority_label = pht('Change Priority'); | $priority_label = pht('Change Priority'); | ||||
$owner_label = pht('Assign / Claim'); | $owner_label = pht('Assign / Claim'); | ||||
$default_status = ManiphestTaskStatus::getDefaultClosedStatus(); | $default_status = ManiphestTaskStatus::getDefaultClosedStatus(); | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |