@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 pager for tokens given

Summary: Several small bugs here, I just never tested this properly.

Test Plan: Set page size to 2, paged through tokens given.

Reviewers: blc, btrahan, chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5500

+4 -3
+2 -3
src/applications/tokens/controller/PhabricatorTokenGivenController.php
··· 7 7 $user = $request->getUser(); 8 8 9 9 $pager = id(new AphrontCursorPagerView()) 10 - ->setURI(new PhutilURI($this->getApplicationURI('/given/'))); 10 + ->readFromRequest($request); 11 11 12 12 $tokens_given = id(new PhabricatorTokenGivenQuery()) 13 13 ->setViewer($user) 14 - ->setLimit(100) 15 14 ->executeWithCursorPager($pager); 16 15 17 16 $handles = array(); ··· 53 52 54 53 $list->addItem($item); 55 54 } 55 + $list->setPager($pager); 56 56 57 57 $title = pht('Tokens Given'); 58 58 ··· 65 65 $nav->selectFilter('given/'); 66 66 67 67 $nav->appendChild($list); 68 - $nav->appendChild($pager); 69 68 70 69 return $this->buildApplicationPage( 71 70 $nav,
+2
src/applications/tokens/query/PhabricatorTokenGivenQuery.php
··· 61 61 $this->tokenPHIDs); 62 62 } 63 63 64 + $where[] = $this->buildPagingClause($conn_r); 65 + 64 66 return $this->formatWhereClause($where); 65 67 } 66 68