mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
Sort Spaces dropdown by name, not "alphabetical ID"
Summary: Fixes T10414. I think this sorted by name at one time (the `asort()`) but then I probably added "Space SX" in front of it. Or I just got this wrong from the beginning. Instead, sort by space name. Test Plan: {F1126034} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10414 Differential Revision: https://secure.phabricator.com/D15334
This commit is contained in:
parent
0799c91822
commit
a112bc5cba
1 changed files with 1 additions and 1 deletions
|
@ -184,6 +184,7 @@ final class PhabricatorSpacesNamespaceQuery
|
||||||
$space_phid) {
|
$space_phid) {
|
||||||
|
|
||||||
$viewer_spaces = self::getViewerSpaces($viewer);
|
$viewer_spaces = self::getViewerSpaces($viewer);
|
||||||
|
$viewer_spaces = msort($viewer_spaces, 'getNamespaceName');
|
||||||
|
|
||||||
$map = array();
|
$map = array();
|
||||||
foreach ($viewer_spaces as $space) {
|
foreach ($viewer_spaces as $space) {
|
||||||
|
@ -200,7 +201,6 @@ final class PhabricatorSpacesNamespaceQuery
|
||||||
$space->getMonogram(),
|
$space->getMonogram(),
|
||||||
$space->getNamespaceName());
|
$space->getNamespaceName());
|
||||||
}
|
}
|
||||||
asort($map);
|
|
||||||
|
|
||||||
return $map;
|
return $map;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue