Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add a profile field and in the category include a / (forward slash), e.g. "A/P Information".
Then when you go to edit a user, the tab to get to the profile fields will link to a url that looks something like:
"user/2/edit/A/P+Information"
which is of course wrong, since the last slash is being treated as a path separator.
Comment | File | Size | Author |
---|---|---|---|
#15 | jsomers_183457_2-D7-15.patch | 1.52 KB | mgifford |
#7 | jsomers_183457_2-D7.patch | 1.62 KB | j.somers |
#2 | jsomers_183457_1-D7.patch | 967 bytes | j.somers |
Comments
Comment #1
bradweikel CreditAttribution: bradweikel commentedStill an issue in D7 branch
Comment #2
j.somers CreditAttribution: j.somers commentedWhen creating my own custom profile fields I always used pretty clear and simple names. I think it should be safe to assume they can only contain letters, numbers, dashes, underscores and whitespace characters.
Comment #4
j.somers CreditAttribution: j.somers commented#2: jsomers_183457_1-D7.patch queued for re-testing.
Comment #5
bradweikel CreditAttribution: bradweikel commentedFor usability, any character restrictions enforced on submission should also be documented in the form element's description, so users don't have to learn about the restriction by trial and error.
Comment #6
j.somers CreditAttribution: j.somers commentedTrue, I'll try to provide an updated patch later today.
Comment #7
j.somers CreditAttribution: j.somers commentedAttached is an updated patch which adds the restriction information to the field description.
Comment #8
mgifford#7: jsomers_183457_2-D7.patch queued for re-testing.
Comment #9
mgiffordHeck, I'm having trouble finding the category field in the profile module. How are we supposed to be grouping user fields in D7?
Comment #10
mgifford7: jsomers_183457_2-D7.patch queued for re-testing.
Comment #11
mgiffordIs this still an issue for D8?
Comment #14
swentel CreditAttribution: swentel commentedProfile is gone in D8, so no.
Comment #15
mgiffordOk, here's a re-roll then of the patch from #7.