Skip to content

Commit a6f0182

Browse files
author
epriestley
committedJul 3, 2017
Fix an issue where repositories with hyphens could sort improperly in typeaheads
Summary: Fixes T12894. See that task for discussion. Test Plan: - Created repositories `abcdef`, then `abcdef-a` through `abcdef-f`. - Before patch, awkward sort order. - After patch, query for `abcdef` hits `abcdef` first. - See T12894 for details and screenshots. Reviewers: chad, amckinley Reviewed By: chad Maniphest Tasks: T12894 Differential Revision: https://secure.phabricator.com/D18179
1 parent 3536fe2 commit a6f0182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/applications/diffusion/typeahead/DiffusionRepositoryDatasource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function loadResults() {
5454
$parts[] = $monogram;
5555
}
5656

57-
$name = implode(' ', $parts);
57+
$name = implode("\n", $parts);
5858

5959
$vcs = $repository->getVersionControlSystem();
6060
$vcs_type = PhabricatorRepositoryType::getNameForRepositoryType($vcs);

0 commit comments

Comments
 (0)
Failed to load comments.