Skip to content
Snippets Groups Projects
Commit f3265fa4 authored by Steven Wittens's avatar Steven Wittens
Browse files

Fix missing user name field on user/register (Arto Bendiken)

parent f39c1e94
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1243,7 +1243,7 @@ function user_edit_form($uid, $edit, $register = FALSE) { ...@@ -1243,7 +1243,7 @@ function user_edit_form($uid, $edit, $register = FALSE) {
$form['account'] = array('#type' => 'fieldset', $form['account'] = array('#type' => 'fieldset',
'#title' => t('Account information'), '#title' => t('Account information'),
); );
if (user_access('change own username') || $admin) { if (user_access('change own username') || $admin || $register) {
$form['account']['name'] = array('#type' => 'textfield', $form['account']['name'] = array('#type' => 'textfield',
'#title' => t('Username'), '#title' => t('Username'),
'#default_value' => $edit['name'], '#default_value' => $edit['name'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment