1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-16 06:14:57 +01:00

Allow "Wait for Message" to be unset on build plans

Summary: Fixes T11910. I spent a couple of minutes looking for the root cause without much luck, but this will all be obsoleted by an eventual upgrade to `EditEngine` anyway.

Test Plan: Set and unset "Wait for Message", which now worked.

Reviewers: chad, avivey

Reviewed By: avivey

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T11910

Differential Revision: https://secure.phabricator.com/D16919
This commit is contained in:
epriestley 2016-11-22 13:46:30 -08:00
parent add20783ab
commit faf42cbe8f
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,7 @@ final class HarbormasterBuildStepCoreCustomField
'the result for this step. After the result is recorded, the build '.
'plan will resume.'),
'options' => array(
'' => pht('Continue Build Normally'),
'continue' => pht('Continue Build Normally'),
'wait' => pht('Wait For Message'),
),
);

View file

@ -237,7 +237,8 @@ abstract class HarbormasterBuildStepImplementation extends Phobject {
return false;
}
return (bool)$target->getDetail('builtin.wait-for-message');
$wait = $target->getDetail('builtin.wait-for-message');
return ($wait == 'wait');
}
protected function shouldAbort(