@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix cursor paging issue in Given Token query call

Summary:
The "Query" class for Given Token is missing a "withIDs()" method.

`Call to undefined method PhabricatorTokenGivenQuery::withIDs() at [PhabricatorCursorPagedPolicyAwareQuery.php:120]`

Closes T15652

Test Plan: Go to the Token page and pass a URL parameter, such as `/token/given/?after=3`

Reviewers: O1 Blessed Committers, speck

Reviewed By: O1 Blessed Committers, speck

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15652

Differential Revision: https://we.phorge.it/D25455

+13
+13
src/applications/tokens/query/PhabricatorTokenGivenQuery.php
··· 3 3 final class PhabricatorTokenGivenQuery 4 4 extends PhabricatorCursorPagedPolicyAwareQuery { 5 5 6 + private $ids; 6 7 private $authorPHIDs; 7 8 private $objectPHIDs; 8 9 private $tokenPHIDs; 10 + 11 + public function withIDs(array $ids) { 12 + $this->ids = $ids; 13 + return $this; 14 + } 9 15 10 16 public function withTokenPHIDs(array $token_phids) { 11 17 $this->tokenPHIDs = $token_phids; ··· 28 34 29 35 protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { 30 36 $where = parent::buildWhereClauseParts($conn); 37 + 38 + if ($this->ids !== null) { 39 + $where[] = qsprintf( 40 + $conn, 41 + 'id IN (%Ld)', 42 + $this->ids); 43 + } 31 44 32 45 if ($this->authorPHIDs !== null) { 33 46 $where[] = qsprintf(