Page MenuHomePhabricator

D9152.id21736.diff
No OneTemporary

D9152.id21736.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
@@ -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

Mime Type
text/plain
Expires
Sun, Mar 16, 5:47 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7324849
Default Alt Text
D9152.id21736.diff (1 KB)

Event Timeline