|
@@ 1487-1493 (lines=7) @@
|
| 1484 |
|
|
| 1485 |
|
$items = []; |
| 1486 |
|
$disabledEnvironments = []; |
| 1487 |
|
foreach($envs as $env) { |
| 1488 |
|
$items[$env->ID] = $env->Title; |
| 1489 |
|
if ($env->CurrentBuild() === false) { |
| 1490 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1491 |
|
$disabledEnvironments[] = $env->ID; |
| 1492 |
|
} |
| 1493 |
|
} |
| 1494 |
|
|
| 1495 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1496 |
|
->setEmptyString('Select an environment'); |
|
@@ 1703-1709 (lines=7) @@
|
| 1700 |
|
|
| 1701 |
|
$items = []; |
| 1702 |
|
$disabledEnvironments = []; |
| 1703 |
|
foreach($envs as $env) { |
| 1704 |
|
$items[$env->ID] = $env->Title; |
| 1705 |
|
if ($env->CurrentBuild() === false) { |
| 1706 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1707 |
|
$disabledEnvironments[] = $env->ID; |
| 1708 |
|
} |
| 1709 |
|
} |
| 1710 |
|
|
| 1711 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1712 |
|
->setEmptyString('Select an environment'); |