Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15431697
D19440.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
766 B
Referenced Files
None
Subscribers
None
D19440.id.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
@@ -73,6 +73,10 @@
}
public function withOwners(array $owners) {
+ if ($owners === array()) {
+ throw new Exception(pht('Empty withOwners() constraint is not valid.'));
+ }
+
$no_owner = PhabricatorPeopleNoOwnerDatasource::FUNCTION_TOKEN;
$any_owner = PhabricatorPeopleAnyOwnerDatasource::FUNCTION_TOKEN;
@@ -88,7 +92,11 @@
break;
}
}
- $this->ownerPHIDs = $owners;
+
+ if ($owners) {
+ $this->ownerPHIDs = $owners;
+ }
+
return $this;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 25 2025, 1:59 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7719766
Default Alt Text
D19440.id.diff (766 B)
Attached To
Mode
D19440: Fix "Any Owner" and "No Owners" searches in Maniphest
Attached
Detach File
Event Timeline
Log In to Comment