Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialDraftField.php
| Show All 30 Lines | final class DifferentialDraftField | ||||
| public function getWarningsForRevisionHeader(array $handles) { | public function getWarningsForRevisionHeader(array $handles) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $revision = $this->getObject(); | $revision = $this->getObject(); | ||||
| if (!$revision->isDraft()) { | if (!$revision->isDraft()) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| // If the author has held this revision as a draft explicitly, don't | |||||
| // show any misleading messages about it autosubmitting later. | |||||
| if ($revision->getHoldAsDraft()) { | |||||
| return array(); | |||||
| } | |||||
| $warnings = array(); | $warnings = array(); | ||||
| $blocking_map = array( | $blocking_map = array( | ||||
| HarbormasterBuildStatus::STATUS_FAILED, | HarbormasterBuildStatus::STATUS_FAILED, | ||||
| HarbormasterBuildStatus::STATUS_ABORTED, | HarbormasterBuildStatus::STATUS_ABORTED, | ||||
| HarbormasterBuildStatus::STATUS_ERROR, | HarbormasterBuildStatus::STATUS_ERROR, | ||||
| HarbormasterBuildStatus::STATUS_PAUSED, | HarbormasterBuildStatus::STATUS_PAUSED, | ||||
| HarbormasterBuildStatus::STATUS_DEADLOCKED, | HarbormasterBuildStatus::STATUS_DEADLOCKED, | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||