Page MenuHomePhabricator

D11911.diff
No OneTemporary

D11911.diff

diff --git a/src/applications/maniphest/query/ManiphestTaskQuery.php b/src/applications/maniphest/query/ManiphestTaskQuery.php
--- a/src/applications/maniphest/query/ManiphestTaskQuery.php
+++ b/src/applications/maniphest/query/ManiphestTaskQuery.php
@@ -791,17 +791,25 @@
$joins[] = qsprintf(
$conn_r,
'LEFT JOIN %T blocking ON blocking.src = task.phid '.
- 'AND blocking.type = %d',
+ 'AND blocking.type = %d '.
+ 'JOIN %T blockingtask ON blocking.dst = blockingtask.phid '.
+ 'AND blockingtask.status IN (%Ls)',
$edge_table,
- ManiphestTaskDependedOnByTaskEdgeType::EDGECONST);
+ ManiphestTaskDependedOnByTaskEdgeType::EDGECONST,
+ id(new ManiphestTask())->getTableName(),
+ ManiphestTaskStatus::getOpenStatusConstants());
}
if ($this->shouldJoinBlockedTasks()) {
$joins[] = qsprintf(
$conn_r,
'LEFT JOIN %T blocked ON blocked.src = task.phid '.
- 'AND blocked.type = %d',
+ 'AND blocked.type = %d '.
+ 'JOIN %T blockedtask ON blocked.dst = blockedtask.phid '.
+ 'AND blockedtask.status IN (%Ls)',
$edge_table,
- ManiphestTaskDependsOnTaskEdgeType::EDGECONST);
+ ManiphestTaskDependsOnTaskEdgeType::EDGECONST,
+ id(new ManiphestTask())->getTableName(),
+ ManiphestTaskStatus::getOpenStatusConstants());
}
if ($this->anyProjectPHIDs || $this->anyUserProjectPHIDs) {

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 1:45 PM (6 h, 49 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6926516
Default Alt Text
D11911.diff (1 KB)

Event Timeline