1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00

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
This commit is contained in:
epriestley 2017-07-03 07:21:27 -07:00
parent 3536fe2877
commit a6f0182104

View file

@ -54,7 +54,7 @@ final class DiffusionRepositoryDatasource
$parts[] = $monogram;
}
$name = implode(' ', $parts);
$name = implode("\n", $parts);
$vcs = $repository->getVersionControlSystem();
$vcs_type = PhabricatorRepositoryType::getNameForRepositoryType($vcs);