1
0
Fork 0
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:
Povilas Balzaravicius Pawka 2015-03-23 06:19:17 -07:00 committed by epriestley
parent 5aca529980
commit b4d0de6b96

View file

@ -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());
}