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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user