Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15450571
D20642.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1012 B
Referenced Files
None
Subscribers
None
D20642.id.diff
View Options
diff --git a/src/applications/flag/query/PhabricatorFlagQuery.php b/src/applications/flag/query/PhabricatorFlagQuery.php
--- a/src/applications/flag/query/PhabricatorFlagQuery.php
+++ b/src/applications/flag/query/PhabricatorFlagQuery.php
@@ -6,6 +6,7 @@
const GROUP_COLOR = 'color';
const GROUP_NONE = 'none';
+ private $ids;
private $ownerPHIDs;
private $types;
private $objectPHIDs;
@@ -15,6 +16,11 @@
private $needHandles;
private $needObjects;
+ public function withIDs(array $ids) {
+ $this->ids = $ids;
+ return $this;
+ }
+
public function withOwnerPHIDs(array $owner_phids) {
$this->ownerPHIDs = $owner_phids;
return $this;
@@ -126,6 +132,13 @@
protected function buildWhereClause(AphrontDatabaseConnection $conn) {
$where = array();
+ if ($this->ids !== null) {
+ $where[] = qsprintf(
+ $conn,
+ 'flag.id IN (%Ld)',
+ $this->ids);
+ }
+
if ($this->ownerPHIDs) {
$where[] = qsprintf(
$conn,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 29, 4:30 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7312440
Default Alt Text
D20642.id.diff (1012 B)
Attached To
Mode
D20642: Fix paging fatal with flagged objects
Attached
Detach File
Event Timeline
Log In to Comment