Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14035805
D9773.id23462.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
955 B
Referenced Files
None
Subscribers
None
D9773.id23462.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9773: Make Legalpad documents have a little document icon in typeaheads
Attached
Detach File
Event Timeline
Log In to Comment