|
@@ 1467-1473 (lines=7) @@
|
| 1464 |
|
|
| 1465 |
|
$items = []; |
| 1466 |
|
$disabledEnvironments = []; |
| 1467 |
|
foreach($envs as $env) { |
| 1468 |
|
$items[$env->ID] = $env->Title; |
| 1469 |
|
if ($env->CurrentBuild() === false) { |
| 1470 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1471 |
|
$disabledEnvironments[] = $env->ID; |
| 1472 |
|
} |
| 1473 |
|
} |
| 1474 |
|
|
| 1475 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1476 |
|
->setEmptyString('Select an environment'); |
|
@@ 1696-1702 (lines=7) @@
|
| 1693 |
|
|
| 1694 |
|
$items = []; |
| 1695 |
|
$disabledEnvironments = []; |
| 1696 |
|
foreach($envs as $env) { |
| 1697 |
|
$items[$env->ID] = $env->Title; |
| 1698 |
|
if ($env->CurrentBuild() === false) { |
| 1699 |
|
$items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
| 1700 |
|
$disabledEnvironments[] = $env->ID; |
| 1701 |
|
} |
| 1702 |
|
} |
| 1703 |
|
|
| 1704 |
|
$envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
| 1705 |
|
->setEmptyString('Select an environment'); |