@@ 1437-1443 (lines=7) @@ | ||
1434 | ||
1435 | $items = []; |
|
1436 | $disabledEnvironments = []; |
|
1437 | foreach($envs as $env) { |
|
1438 | $items[$env->ID] = $env->Title; |
|
1439 | if ($env->CurrentBuild() === false) { |
|
1440 | $items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
|
1441 | $disabledEnvironments[] = $env->ID; |
|
1442 | } |
|
1443 | } |
|
1444 | ||
1445 | $envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
|
1446 | ->setEmptyString('Select an environment'); |
|
@@ 1653-1659 (lines=7) @@ | ||
1650 | ||
1651 | $items = []; |
|
1652 | $disabledEnvironments = []; |
|
1653 | foreach($envs as $env) { |
|
1654 | $items[$env->ID] = $env->Title; |
|
1655 | if ($env->CurrentBuild() === false) { |
|
1656 | $items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
|
1657 | $disabledEnvironments[] = $env->ID; |
|
1658 | } |
|
1659 | } |
|
1660 | ||
1661 | $envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
|
1662 | ->setEmptyString('Select an environment'); |