Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15308964
D9152.id21736.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
D9152.id21736.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
@@ -304,6 +304,12 @@
$projects = mpull($projects, null, 'getPHID');
foreach ($tasks as $key => $task) {
+ if (!$task->getGroupByProjectPHID()) {
+ // This task is either not in any projects, or only in projects
+ // which we're ignoring because they're being queried for explicitly.
+ continue;
+ }
+
if (empty($projects[$task->getGroupByProjectPHID()])) {
unset($tasks[$key]);
}
diff --git a/src/applications/maniphest/view/ManiphestTaskResultListView.php b/src/applications/maniphest/view/ManiphestTaskResultListView.php
--- a/src/applications/maniphest/view/ManiphestTaskResultListView.php
+++ b/src/applications/maniphest/view/ManiphestTaskResultListView.php
@@ -170,7 +170,12 @@
if ($label_key) {
return $handles[$label_key]->getFullName();
} else {
- return pht('(No Project)');
+ // This may mean "No Projects", or it may mean the query has project
+ // constraints but the task is only in constrained projects (in this
+ // case, we don't show the group because it would always have all
+ // of the tasks). Since distinguishing between these two cases is
+ // messy and the UI is reasonably clear, label generically.
+ return pht('(Ungrouped)');
}
default:
return pht('Tasks');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 7 2025, 6:47 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7324849
Default Alt Text
D9152.id21736.diff (1 KB)
Attached To
Mode
D9152: Fix an incorrect filtering of groupless results from Maniphest "Group By" query
Attached
Detach File
Event Timeline
Log In to Comment