Skip to content
Snippets Groups Projects
Commit e070e832 authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- Patch #90662 by hunmonk: profile registration fields broken for user admins

parent 76d6439c
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
......@@ -631,7 +631,7 @@ function profile_form_profile($edit, $user, $category) {
if (arg(0) == 'user' && arg(1) == 'register') {
$result = db_query('SELECT * FROM {profile_fields} WHERE visibility != %d AND register = 1 ORDER BY category, weight', PROFILE_HIDDEN);
}
elseif (arg(0) == 'admin' && arg(1) == 'user' && arg(2) == 'create') {
elseif (arg(0) == 'admin' && arg(1) == 'user' && arg(2) == 'user' && arg(3) == 'create') {
$result = db_query('SELECT * FROM {profile_fields} WHERE register = 1 ORDER BY category, weight');
}
elseif (user_access('administer users')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment