|
@@ 1442-1448 (lines=7) @@
|
| 1439 |
|
|
| 1440 |
|
$items = []; |
| 1441 |
|
$disabledEnvironments = []; |
| 1442 |
|
foreach($envs as $env) { |
| 1443 |
|
$items[$env->ID] = $env->Title; |
| 1444 |
|
if ($env->CurrentBuild() === false) { |
| 1445 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1446 |
|
$disabledEnvironments[] = $env->ID; |
| 1447 |
|
} |
| 1448 |
|
} |
| 1449 |
|
|
| 1450 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1451 |
|
->setEmptyString('Select an environment'); |
|
@@ 1658-1664 (lines=7) @@
|
| 1655 |
|
|
| 1656 |
|
$items = []; |
| 1657 |
|
$disabledEnvironments = []; |
| 1658 |
|
foreach($envs as $env) { |
| 1659 |
|
$items[$env->ID] = $env->Title; |
| 1660 |
|
if ($env->CurrentBuild() === false) { |
| 1661 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1662 |
|
$disabledEnvironments[] = $env->ID; |
| 1663 |
|
} |
| 1664 |
|
} |
| 1665 |
|
|
| 1666 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1667 |
|
->setEmptyString('Select an environment'); |