1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Changed checking for a closed task in arc tasks to look for the isClosed property instead of a non-empty status

Summary: I changed the way `arc tasks` was checking to see if a maniphest task was closed from looking for a non-empty status to looking for the isClosed property submitted in D8731.

Test Plan: Run `arc tasks` and check that the tasks show open/closed correctly.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8732
This commit is contained in:
Brayden Winterton 2014-04-09 07:48:24 -07:00 committed by epriestley
parent 2714395d98
commit 7e394dcf11

View file

@ -155,11 +155,12 @@ EOTEXT
); );
// Render the "Status" column. // Render the "Status" column.
if ($task['status']) { if (isset($task['isClosed'])) {
$status_text = 'Closed'; if ($task['isClosed']) {
$status_text = $task['statusName'];
$status_color = 'red'; $status_color = 'red';
} else { } else {
$status_text = 'Open'; $status_text = $task['statusName'];
$status_color = 'green'; $status_color = 'green';
} }
$formatted_status = phutil_console_format( $formatted_status = phutil_console_format(
@ -169,6 +170,12 @@ EOTEXT
'text' => $formatted_status, 'text' => $formatted_status,
'len' => phutil_utf8_console_strlen('status') + 2, 'len' => phutil_utf8_console_strlen('status') + 2,
); );
} else {
$output['status'] = array(
'text' => "",
'len' => 0,
);
}
$task_rows[] = $output; $task_rows[] = $output;
} }