Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
e070e832
Commit
e070e832
authored
18 years ago
by
Kjartan Mannes
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#90662
by hunmonk: profile registration fields broken for user admins
parent
76d6439c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/profile/profile.module
+1
-1
1 addition, 1 deletion
modules/profile/profile.module
with
1 addition
and
1 deletion
modules/profile/profile.module
+
1
−
1
View file @
e070e832
...
...
@@ -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'
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment