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.
regression from 4.6.x
Comment | File | Size | Author |
---|---|---|---|
#12 | profile.module_16.patch | 6.85 KB | rkerr |
#10 | profile.module_15.patch | 6.13 KB | yched |
#7 | profile_hidden.diff | 2.32 KB | munga |
#1 | profile.diff | 6.87 KB | munga |
Comments
Comment #1
munga CreditAttribution: munga commentedThe attached patch should fix the problem ...
Comment #2
munga CreditAttribution: munga commentedReg that pacth I've just submitted ...
I'm not sure if it's the right way to solve the problem and
I haven't managed to make the category disappear if all fields in that
category are hidden ... I think the category tab is set in user.module.
Comment #3
Steve Dondley CreditAttribution: Steve Dondley commentedI don't understand this bug report. Why should a hidden or private field be removed from the user edit form? User's should always be able to edit these fields regardless of the "Visibility" setting.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedBecause 'hidden' fields are not meant to be user editable, but should only be edited by admins, modules or themes.
It's useful for things like Titles that admins can give users. I don't want users editing their titles if they have meaning, for example!
Comment #5
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedwhat #4 says
setting patch status for patch in #1
Comment #6
Steve Dondley CreditAttribution: Steve Dondley commentedCode for form elements should span several lines instead of being bunched onto one.
Comment #7
munga CreditAttribution: munga commentednew patch attached. This one contains only the small patch for the hidden files (and
this time in the correct order). I left any other modifications out.
p
Comment #8
yched CreditAttribution: yched commentedI'd like very much this bug to be fixed :-)
Could you provide an update of your patch against current head ?
Comment #9
darius CreditAttribution: darius commentedThe issue is real (I just verified this with the latest CVS version), but the patch does not apply cleanly anymore. Also, the related issue could be addressed here, too: admins SHOULD see the hidden fields in VIEWING user profile (currently, the issue only addresses what happens in EDITING user profile).
Darius
P.S. I removed "private" from the title because this only concerns "hidden" fields.
Comment #10
yched CreditAttribution: yched commentedOK, I updated the last patch submitted by munga. It is now synched with current HEAD.
I also spanned the code for form elements on several lines as Steven requested.
Seems to work for me, but I haven't done extensive testing.
Comment #11
rkerr CreditAttribution: rkerr commentedBug still exists but patch does not apply.
""
patching file modules/profile.module
patch: **** malformed patch at line 102: @@ -400,11 +446,17 @@
""
Comment #12
rkerr CreditAttribution: rkerr commentedUpdated patch against most recent HEAD.
Comment #13
Amazon CreditAttribution: Amazon commentedI created a new profile field in a profile.
I could see the profile field as admin for a hidden profile.
I could not see if as an authenticated user looking at my own profile.
I only tested after the patch was applied, I did not test without the patch.
Kieran
Comment #14
moshe weitzman CreditAttribution: moshe weitzman commentedkieran tested this so lets move to RTC
Comment #15
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #16
(not verified) CreditAttribution: commented