Page MenuHomePhabricator

D9773.id23462.diff
No OneTemporary

D9773.id23462.diff

diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
--- a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
+++ b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
@@ -264,11 +264,11 @@
$documents = id(new LegalpadDocumentQuery())
->setViewer($viewer)
->execute();
- $documents = mpull($documents, 'getTitle', 'getPHID');
- foreach ($documents as $phid => $title) {
+ foreach ($documents as $document) {
$results[] = id(new PhabricatorTypeaheadResult())
- ->setPHID($phid)
- ->setName($title);
+ ->setPHID($document->getPHID())
+ ->setIcon('fa-file-text-o')
+ ->setName($document->getMonogram().' '.$document->getTitle());
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 7:40 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714532
Default Alt Text
D9773.id23462.diff (955 B)

Event Timeline