Page MenuHomePhabricator

D19907.diff
No OneTemporary

D19907.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
@@ -187,6 +187,11 @@
'column' => 'milestoneNumber',
'type' => 'int',
),
+ 'status' => array(
+ 'table' => $this->getPrimaryTableAlias(),
+ 'column' => 'status',
+ 'type' => 'int',
+ ),
);
}
diff --git a/src/applications/project/typeahead/PhabricatorProjectDatasource.php b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
--- a/src/applications/project/typeahead/PhabricatorProjectDatasource.php
+++ b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
@@ -26,7 +26,8 @@
$query = id(new PhabricatorProjectQuery())
->needImages(true)
- ->needSlugs(true);
+ ->needSlugs(true)
+ ->setOrderVector(array('-status', 'id'));
if ($this->getPhase() == self::PHASE_PREFIX) {
$prefix = $this->getPrefixQuery();

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 12:42 PM (17 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7020881
Default Alt Text
D19907.diff (1 KB)

Event Timeline