Page MenuHomePhabricator

D16253.id39095.diff
No OneTemporary

D16253.id39095.diff

diff --git a/src/applications/owners/controller/PhabricatorOwnersPathsController.php b/src/applications/owners/controller/PhabricatorOwnersPathsController.php
--- a/src/applications/owners/controller/PhabricatorOwnersPathsController.php
+++ b/src/applications/owners/controller/PhabricatorOwnersPathsController.php
@@ -82,7 +82,13 @@
}
}
- $repos = mpull($repos, 'getDisplayName', 'getPHID');
+
+ $repo_map = array();
+ foreach ($repos as $key => $repo) {
+ $monogram = $repo->getMonogram();
+ $name = $repo->getName();
+ $repo_map[$repo->getPHID()] = "{$monogram} {$name}";
+ }
asort($repos);
$template = new AphrontTypeaheadTemplateView();
@@ -94,7 +100,7 @@
'root' => 'path-editor',
'table' => 'paths',
'add_button' => 'addpath',
- 'repositories' => $repos,
+ 'repositories' => $repo_map,
'input_template' => $template,
'pathRefs' => $path_refs,

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 1:42 AM (18 h, 29 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7038518
Default Alt Text
D16253.id39095.diff (1 KB)

Event Timeline