mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-30 09:20:22 +02:00
Fixed issue with launch phase name
This commit is contained in:
parent
f942607363
commit
8dc01d65d0
2 changed files with 9 additions and 0 deletions
|
@ -74,6 +74,11 @@ class ApplicationsController extends Controller
|
||||||
$authInfo = $data['authInfo'] ?? null;
|
$authInfo = $data['authInfo'] ?? null;
|
||||||
$invalid_domain = validate_label($domainName, $db);
|
$invalid_domain = validate_label($domainName, $db);
|
||||||
|
|
||||||
|
if ($phaseType === 'custom' && empty($phaseName)) {
|
||||||
|
$this->container->get('flash')->addMessage('error', 'Please provide a phase name when selecting the "Custom" phase type.');
|
||||||
|
return $response->withHeader('Location', '/application/create')->withStatus(302);
|
||||||
|
}
|
||||||
|
|
||||||
if ($invalid_domain) {
|
if ($invalid_domain) {
|
||||||
$this->container->get('flash')->addMessage('error', 'Error creating application: Invalid domain name');
|
$this->container->get('flash')->addMessage('error', 'Error creating application: Invalid domain name');
|
||||||
return $response->withHeader('Location', '/application/create')->withStatus(302);
|
return $response->withHeader('Location', '/application/create')->withStatus(302);
|
||||||
|
|
|
@ -634,6 +634,10 @@ function processDomainCreate($conn, $db, $xml, $clid, $database_type, $trans, $m
|
||||||
} elseif ($launch_phase === 'landrush') {
|
} elseif ($launch_phase === 'landrush') {
|
||||||
// Continue
|
// Continue
|
||||||
} elseif ($launch_phase === 'custom') {
|
} elseif ($launch_phase === 'custom') {
|
||||||
|
if (empty($launch_phase_name)) {
|
||||||
|
sendEppError($conn, $db, 2003, 'Missing required element: A phase name is mandatory for the custom phase.', $clTRID, $trans);
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Continue
|
// Continue
|
||||||
} else {
|
} else {
|
||||||
// Mixed or unsupported form
|
// Mixed or unsupported form
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue