Commit 1b21ebf3 authored by webchick's avatar webchick

Issue #2294313 by Ieva Uzule, rachel_norfolk, nathanlawson91, xadag,...

Issue #2294313 by Ieva Uzule, rachel_norfolk, nathanlawson91, xadag, er.pushpinderrana, Dominique CLAUSE, marcus7777: Email is asked before user name in SiteConfigureForm.
parent 010b5864
......@@ -147,12 +147,6 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#type' => 'fieldgroup',
'#title' => $this->t('Site maintenance account'),
);
$form['admin_account']['account']['#tree'] = TRUE;
$form['admin_account']['account']['mail'] = array(
'#type' => 'email',
'#title' => $this->t('Email address'),
'#required' => TRUE,
);
$form['admin_account']['account']['name'] = array(
'#type' => 'textfield',
'#title' => $this->t('Username'),
......@@ -166,6 +160,12 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#required' => TRUE,
'#size' => 25,
);
$form['admin_account']['account']['#tree'] = TRUE;
$form['admin_account']['account']['mail'] = array(
'#type' => 'email',
'#title' => $this->t('Email address'),
'#required' => TRUE,
);
$form['regional_settings'] = array(
'#type' => 'fieldgroup',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment