|
@@ 1464-1470 (lines=7) @@
|
| 1461 |
|
|
| 1462 |
|
$items = []; |
| 1463 |
|
$disabledEnvironments = []; |
| 1464 |
|
foreach($envs as $env) { |
| 1465 |
|
$items[$env->ID] = $env->Title; |
| 1466 |
|
if ($env->CurrentBuild() === false) { |
| 1467 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1468 |
|
$disabledEnvironments[] = $env->ID; |
| 1469 |
|
} |
| 1470 |
|
} |
| 1471 |
|
|
| 1472 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1473 |
|
->setEmptyString('Select an environment'); |
|
@@ 1680-1686 (lines=7) @@
|
| 1677 |
|
|
| 1678 |
|
$items = []; |
| 1679 |
|
$disabledEnvironments = []; |
| 1680 |
|
foreach($envs as $env) { |
| 1681 |
|
$items[$env->ID] = $env->Title; |
| 1682 |
|
if ($env->CurrentBuild() === false) { |
| 1683 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1684 |
|
$disabledEnvironments[] = $env->ID; |
| 1685 |
|
} |
| 1686 |
|
} |
| 1687 |
|
|
| 1688 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1689 |
|
->setEmptyString('Select an environment'); |