Page MenuHomePhabricator

D19440.id.diff
No OneTemporary

D19440.id.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
@@ -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

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)

Event Timeline