Page MenuHomePhabricator

D17093.diff
No OneTemporary

D17093.diff

diff --git a/src/applications/transactions/typeahead/PhabricatorEditEngineDatasource.php b/src/applications/transactions/typeahead/PhabricatorEditEngineDatasource.php
--- a/src/applications/transactions/typeahead/PhabricatorEditEngineDatasource.php
+++ b/src/applications/transactions/typeahead/PhabricatorEditEngineDatasource.php
@@ -21,10 +21,15 @@
$forms = $this->executeQuery($query);
$results = array();
foreach ($forms as $form) {
-
+ $phid = $form->getPHID();
+ if ($phid) {
+ $key = $phid;
+ } else {
+ $key = $form->getEngineKey().'.'.$form->getBuiltinKey();
+ }
$result = id(new PhabricatorTypeaheadResult())
->setName($form->getName())
- ->setPHID($form->getPHID());
+ ->setPHID($key);
if ($form->getIsDisabled()) {
$result->setClosed(pht('Archived'));

File Metadata

Mime Type
text/plain
Expires
Sun, May 12, 6:12 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6290533
Default Alt Text
D17093.diff (862 B)

Event Timeline