@@ 1479-1485 (lines=7) @@ | ||
1476 | ||
1477 | $items = []; |
|
1478 | $disabledEnvironments = []; |
|
1479 | foreach($envs as $env) { |
|
1480 | $items[$env->ID] = $env->Title; |
|
1481 | if ($env->CurrentBuild() === false) { |
|
1482 | $items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
|
1483 | $disabledEnvironments[] = $env->ID; |
|
1484 | } |
|
1485 | } |
|
1486 | ||
1487 | $envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
|
1488 | ->setEmptyString('Select an environment'); |
|
@@ 1708-1714 (lines=7) @@ | ||
1705 | ||
1706 | $items = []; |
|
1707 | $disabledEnvironments = []; |
|
1708 | foreach($envs as $env) { |
|
1709 | $items[$env->ID] = $env->Title; |
|
1710 | if ($env->CurrentBuild() === false) { |
|
1711 | $items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
|
1712 | $disabledEnvironments[] = $env->ID; |
|
1713 | } |
|
1714 | } |
|
1715 | ||
1716 | $envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
|
1717 | ->setEmptyString('Select an environment'); |