|
@@ 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'); |
|
@@ 1712-1718 (lines=7) @@
|
| 1709 |
|
|
| 1710 |
|
$items = []; |
| 1711 |
|
$disabledEnvironments = []; |
| 1712 |
|
foreach($envs as $env) { |
| 1713 |
|
$items[$env->ID] = $env->Title; |
| 1714 |
|
if ($env->CurrentBuild() === false) { |
| 1715 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1716 |
|
$disabledEnvironments[] = $env->ID; |
| 1717 |
|
} |
| 1718 |
|
} |
| 1719 |
|
|
| 1720 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1721 |
|
->setEmptyString('Select an environment'); |