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.
The subscriptions_add_form simply sets the #access property to the setting value. From the user preference form, it appears the value should be greater than 0 to be TRUE.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#3 | sub_add_respect_visiblity_settings.patch | 1.26 KB | pattersonc |
sub_add_respect_visiblity_settings.patch | 1.41 KB | pattersonc | |
Comments
Comment #1
pattersonc CreditAttribution: pattersonc commentedComment #3
pattersonc CreditAttribution: pattersonc commentedMaking relative
Comment #4
pattersonc CreditAttribution: pattersonc commentedComment #5
salvisThank you for your patch, but can you actually reproduce a bug that needs fixing? How?
Comment #6
pattersonc CreditAttribution: pattersonc commentedSure.
1. Set user defaults (or individual user settings to hide interval, etc.)
2. Visit subscriptions/add/[type]
3. Notice the controls are visible
Comment #7
salvisI need an exact description of what you do (exact paths, states of controls, buttons you click, etc.), what you expect to get, and what you see instead.
No "etc.", brackets, or anything like that. Pick one precise test case.
Comment #8
pattersonc CreditAttribution: pattersonc commented1. Clear subscriptions_user so it has only the default user entry.
2. Visit admin/config/system/subscriptions/userdefaults > Overview > Visibility of Controls
3. Select 'Completely Inaccessible to the user' for all three options.
4. Visit add/taxa/1 where 1 is a valid taxonomy id where subscriptions are allowed.
5. Notice drop-down, and two check boxes allowing user to select Interval and On Update, On Comment
Sorry it took so long to get back to you on this one. Let me know if you need anything else.
Comment #9
pattersonc CreditAttribution: pattersonc commentedComment #10
daudetalphonse CreditAttribution: daudetalphonse commentedExact same issue here. Regardless of the visibility settings you choose in the admin, the column "on updates" is always visible to the user (in my case, user role = authenticated user).
Comment #11
salvisRe #8: I don't have any add/taxa/TID path.
Also, I'm not sure what happens if you "Clear subscriptions_user so it has only the default user entry." This is certainly not a supported operation.