Page MenuHomePhabricator

D12357.diff
No OneTemporary

D12357.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
Mon, Nov 18, 1:40 PM (23 h, 4 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719082
Default Alt Text
D12357.diff (1 KB)

Event Timeline