|
@@ 1483-1489 (lines=7) @@
|
| 1480 |
|
|
| 1481 |
|
$items = []; |
| 1482 |
|
$disabledEnvironments = []; |
| 1483 |
|
foreach($envs as $env) { |
| 1484 |
|
$items[$env->ID] = $env->Title; |
| 1485 |
|
if ($env->CurrentBuild() === false) { |
| 1486 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1487 |
|
$disabledEnvironments[] = $env->ID; |
| 1488 |
|
} |
| 1489 |
|
} |
| 1490 |
|
|
| 1491 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1492 |
|
->setEmptyString('Select an environment'); |
|
@@ 1699-1705 (lines=7) @@
|
| 1696 |
|
|
| 1697 |
|
$items = []; |
| 1698 |
|
$disabledEnvironments = []; |
| 1699 |
|
foreach($envs as $env) { |
| 1700 |
|
$items[$env->ID] = $env->Title; |
| 1701 |
|
if ($env->CurrentBuild() === false) { |
| 1702 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1703 |
|
$disabledEnvironments[] = $env->ID; |
| 1704 |
|
} |
| 1705 |
|
} |
| 1706 |
|
|
| 1707 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1708 |
|
->setEmptyString('Select an environment'); |