Page MenuHomePhabricator

D8732.id20711.diff
No OneTemporary

D8732.id20711.diff

diff --git a/src/workflow/ArcanistTasksWorkflow.php b/src/workflow/ArcanistTasksWorkflow.php
--- a/src/workflow/ArcanistTasksWorkflow.php
+++ b/src/workflow/ArcanistTasksWorkflow.php
@@ -155,20 +155,27 @@
);
// Render the "Status" column.
- if ($task['status']) {
- $status_text = 'Closed';
- $status_color = 'red';
+ if (isset($task['isClosed'])) {
+ if ($task['isClosed']) {
+ $status_text = $task['statusName'];
+ $status_color = 'red';
+ } else {
+ $status_text = $task['statusName'];
+ $status_color = 'green';
+ }
+ $formatted_status = phutil_console_format(
+ "<bg:{$status_color}> </bg> %s",
+ $status_text);
+ $output['status'] = array(
+ 'text' => $formatted_status,
+ 'len' => phutil_utf8_console_strlen('status') + 2,
+ );
} else {
- $status_text = 'Open';
- $status_color = 'green';
+ $output['status'] = array(
+ 'text' => "",
+ 'len' => 0,
+ );
}
- $formatted_status = phutil_console_format(
- "<bg:{$status_color}> </bg> %s",
- $status_text);
- $output['status'] = array(
- 'text' => $formatted_status,
- 'len' => phutil_utf8_console_strlen('status') + 2,
- );
$task_rows[] = $output;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 6, 3:12 AM (3 d, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7228643
Default Alt Text
D8732.id20711.diff (1 KB)

Event Timeline