Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13175394
D20317.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
D20317.diff
View Options
diff --git a/src/applications/transactions/query/PhabricatorApplicationTransactionQuery.php b/src/applications/transactions/query/PhabricatorApplicationTransactionQuery.php
--- a/src/applications/transactions/query/PhabricatorApplicationTransactionQuery.php
+++ b/src/applications/transactions/query/PhabricatorApplicationTransactionQuery.php
@@ -3,6 +3,7 @@
abstract class PhabricatorApplicationTransactionQuery
extends PhabricatorCursorPagedPolicyAwareQuery {
+ private $ids;
private $phids;
private $objectPHIDs;
private $authorPHIDs;
@@ -35,6 +36,11 @@
abstract public function getTemplateApplicationTransaction();
+ public function withIDs(array $ids) {
+ $this->ids = $ids;
+ return $this;
+ }
+
public function withPHIDs(array $phids) {
$this->phids = $phids;
return $this;
@@ -157,6 +163,13 @@
protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {
$where = parent::buildWhereClauseParts($conn);
+ if ($this->ids !== null) {
+ $where[] = qsprintf(
+ $conn,
+ 'x.id IN (%Ld)',
+ $this->ids);
+ }
+
if ($this->phids !== null) {
$where[] = qsprintf(
$conn,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 9, 4:57 AM (3 w, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6270978
Default Alt Text
D20317.diff (1 KB)
Attached To
Mode
D20317: Fix transaction queries failing on "withIDs()" after clicking "Show Older"
Attached
Detach File
Event Timeline
Log In to Comment