@@ 1459-1465 (lines=7) @@ | ||
1456 | ||
1457 | $items = []; |
|
1458 | $disabledEnvironments = []; |
|
1459 | foreach($envs as $env) { |
|
1460 | $items[$env->ID] = $env->Title; |
|
1461 | if ($env->CurrentBuild() === false) { |
|
1462 | $items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
|
1463 | $disabledEnvironments[] = $env->ID; |
|
1464 | } |
|
1465 | } |
|
1466 | ||
1467 | $envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
|
1468 | ->setEmptyString('Select an environment'); |
|
@@ 1675-1681 (lines=7) @@ | ||
1672 | ||
1673 | $items = []; |
|
1674 | $disabledEnvironments = []; |
|
1675 | foreach($envs as $env) { |
|
1676 | $items[$env->ID] = $env->Title; |
|
1677 | if ($env->CurrentBuild() === false) { |
|
1678 | $items[$env->ID] = sprintf("%s - requires initial deployment", $env->Title); |
|
1679 | $disabledEnvironments[] = $env->ID; |
|
1680 | } |
|
1681 | } |
|
1682 | ||
1683 | $envsField = DropdownField::create('EnvironmentID', 'Environment', $items) |
|
1684 | ->setEmptyString('Select an environment'); |