mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
T7646: Fix buildplan ac on Herald.
Summary: Fixes T7646. Test Plan: Repeat steps described in T7646 and expect disabled build plans not displayed. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T7646 Differential Revision: https://secure.phabricator.com/D12133
This commit is contained in:
parent
5aca529980
commit
b4d0de6b96
1 changed files with 6 additions and 0 deletions
|
@ -21,8 +21,14 @@ final class HarbormasterBuildPlanDatasource
|
|||
->setViewer($viewer)
|
||||
->execute();
|
||||
foreach ($plans as $plan) {
|
||||
$closed = null;
|
||||
if ($plan->isDisabled()) {
|
||||
$closed = pht('Disabled');
|
||||
}
|
||||
|
||||
$results[] = id(new PhabricatorTypeaheadResult())
|
||||
->setName($plan->getName())
|
||||
->setClosed($closed)
|
||||
->setPHID($plan->getPHID());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue