Page MenuHomePhabricator

D12357.id29757.diff
No OneTemporary

D12357.id29757.diff

diff --git a/src/applications/project/query/PhabricatorProjectQuery.php b/src/applications/project/query/PhabricatorProjectQuery.php
--- a/src/applications/project/query/PhabricatorProjectQuery.php
+++ b/src/applications/project/query/PhabricatorProjectQuery.php
@@ -95,16 +95,30 @@
return $this;
}
- protected function getPagingColumn() {
- return 'name';
+ protected function getDefaultOrderVector() {
+ return array('name');
}
- protected function getPagingValue($result) {
- return $result->getName();
+ public function getOrderableColumns() {
+ return array(
+ 'name' => array(
+ 'table' => $this->getPrimaryTableAlias(),
+ 'column' => 'name',
+ 'reverse' => true,
+ 'type' => 'string',
+ 'unique' => true,
+ ),
+ );
+ }
+
+ protected function getPagingValueMap($cursor, array $keys) {
+ return array(
+ 'name' => $cursor,
+ );
}
- protected function getReversePaging() {
- return true;
+ protected function getPagingValue($result) {
+ return $result->getName();
}
protected function loadPage() {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 6:37 PM (1 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719082
Default Alt Text
D12357.id29757.diff (1 KB)

Event Timeline