Fix "Recently Closed" column for custom task statuses
Summary: Fixes T5056. Test Plan: Viewed locally, saw numbers. Reviewers: btrahan, shadowhand Reviewed By: shadowhand Subscribers: shadowhand, epriestley Maniphest Tasks: T5056 Differential Revision: https://secure.phabricator.com/D9126
This commit is contained in:
@@ -663,13 +663,14 @@ final class ManiphestReportController extends ManiphestController {
|
|||||||
$tasks = queryfx_all(
|
$tasks = queryfx_all(
|
||||||
$conn_r,
|
$conn_r,
|
||||||
'SELECT t.* FROM %T t JOIN %T x ON x.objectPHID = t.phid
|
'SELECT t.* FROM %T t JOIN %T x ON x.objectPHID = t.phid
|
||||||
WHERE t.status != 0
|
WHERE t.status NOT IN (%Ls)
|
||||||
AND x.oldValue IN (null, %Ls)
|
AND x.oldValue IN (null, %Ls)
|
||||||
AND x.newValue NOT IN (%Ls)
|
AND x.newValue NOT IN (%Ls)
|
||||||
AND t.dateModified >= %d
|
AND t.dateModified >= %d
|
||||||
AND x.dateCreated >= %d',
|
AND x.dateCreated >= %d',
|
||||||
$table->getTableName(),
|
$table->getTableName(),
|
||||||
$xtable->getTableName(),
|
$xtable->getTableName(),
|
||||||
|
ManiphestTaskStatus::getOpenStatusConstants(),
|
||||||
$open_status_list,
|
$open_status_list,
|
||||||
$open_status_list,
|
$open_status_list,
|
||||||
$window_epoch,
|
$window_epoch,
|
||||||
|
|||||||
Reference in New Issue
Block a user