mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
When Owners packages are archived, annotate them in tokenizer results
Summary: Fixes T13512. Archived packages in Owners are missing hinting, but should have it. Test Plan: Before: {F7369122} After: {F7369128} Maniphest Tasks: T13512 Differential Revision: https://secure.phabricator.com/D21134
This commit is contained in:
parent
925d2b051c
commit
83eb7447a1
1 changed files with 7 additions and 1 deletions
|
@ -39,10 +39,16 @@ final class PhabricatorOwnersPackageDatasource
|
|||
$name = $package->getName();
|
||||
$monogram = $package->getMonogram();
|
||||
|
||||
$results[] = id(new PhabricatorTypeaheadResult())
|
||||
$result = id(new PhabricatorTypeaheadResult())
|
||||
->setName("{$monogram}: {$name}")
|
||||
->setURI($package->getURI())
|
||||
->setPHID($package->getPHID());
|
||||
|
||||
if ($package->isArchived()) {
|
||||
$result->setClosed(pht('Archived'));
|
||||
}
|
||||
|
||||
$results[] = $result;
|
||||
}
|
||||
|
||||
return $this->filterResultsAgainstTokens($results);
|
||||
|
|
Loading…
Reference in a new issue