Owners - sort repositories alphabetically in path chooser
Summary: Fixes T6834. Without this asort() call, repositories are ordered by ID, which is arbitrary to the user. This sorts them alphabetically by callsign. Test Plan: edited a package and saw repos sorted by call sign Reviewers: epriestley, chad Reviewed By: chad Subscribers: Korvin, epriestley Maniphest Tasks: T6834 Differential Revision: https://secure.phabricator.com/D11095
This commit is contained in:
@@ -145,6 +145,7 @@ final class PhabricatorOwnersEditController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$repos = mpull($repos, 'getCallsign', 'getPHID');
|
$repos = mpull($repos, 'getCallsign', 'getPHID');
|
||||||
|
asort($repos);
|
||||||
|
|
||||||
$template = new AphrontTypeaheadTemplateView();
|
$template = new AphrontTypeaheadTemplateView();
|
||||||
$template = $template->render();
|
$template = $template->render();
|
||||||
|
|||||||
Reference in New Issue
Block a user