Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14413078
D11911.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11911.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11911: Exclude closed tasks from blocked/blocking filter
Attached
Detach File
Event Timeline
Log In to Comment