From 30024a8d865c4ec96a41594e52eec53b7fe5c75f Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 22 Aug 2011 17:47:06 -0700 Subject: [PATCH] Render full close status, not just "Closed", in Maniphest list view Summary: Instead of just saying a task is "Closed", say "Resolved", "Wontfix", etc. Test Plan: Looked at task list view, saw "Resolved", "Wontfix", etc. Reviewers: skrul, hunterbridges, jungejason, tuomaspelkonen, aran Reviewed By: skrul CC: aran, skrul, jungejason, epriestley Differential Revision: 851 --- .../maniphest/view/tasksummary/ManiphestTaskSummaryView.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php b/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php index a43dd698d0..ca102df1b5 100644 --- a/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php +++ b/src/applications/maniphest/view/tasksummary/ManiphestTaskSummaryView.php @@ -61,6 +61,7 @@ class ManiphestTaskSummaryView extends ManiphestView { ); $pri_class = idx($classes, $task->getPriority()); + $status_map = ManiphestTaskStatus::getTaskStatusMap(); return ''. @@ -69,9 +70,7 @@ class ManiphestTaskSummaryView extends ManiphestView { 'T'.$task->getID(). ''. ''. '
'. - ($task->getStatus() == ManiphestTaskStatus::STATUS_OPEN - ? 'Open' - : 'Closed'). + idx($status_map, $task->getStatus(), 'Unknown'). ''. ($task->getOwnerPHID()