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 key is simply mismatched to work with what's being provided in hook extra fields. Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#8 | domain_list_user_profile.jpg | 14.96 KB | joshua.boltz |
#8 | domain_form_user_edit.jpg | 22.9 KB | joshua.boltz |
#4 | 2106803-domain-user-weight.patch | 1.29 KB | agentrickard |
domain-access-user-form-alter-weight.patch | 1.29 KB | fearlsgroove |
Comments
Comment #1
agentrickardWorks for me without the patch. Which form are you checking?
Comment #2
fearlsgroove CreditAttribution: fearlsgroove commentedI believe this was for either the create user form, but it may also have been the edit user form. Definitely one or the other, possibly both.
Comment #3
agentrickardEdit user form respects this setting, so it's the create form.
Comment #4
agentrickardInteresting. It works if I add a non-core field and sort, but not if it is just the core fields and Domain User.
Revised patch also removes the #weight value from the fieldset, since this is changed automatically.
Comment #5
agentrickardComment #6
agentrickardReview?
Comment #7
fearlsgroove CreditAttribution: fearlsgroove commentedLooks good to me! Still works with weight removed.
Comment #8
joshua.boltz CreditAttribution: joshua.boltz commentedI'm not sure if I'm in the right issue, but I think my issue may be related. If not, please let me know the correct issue.
My issue is that when updating the assigned domains of a user, after form submit, the user profile still shows domains being assigned which have been unchecked and submitted.
Does that make sense?
See screenshots.
Comment #9
joshua.boltz CreditAttribution: joshua.boltz commentedOf course, the user profile showing the wrong domains isn't the main issue. The main issue is that users not assigned to specific domains are still able to login to unassigned domains. Using domain_bonus module.
Comment #10
joshua.boltz CreditAttribution: joshua.boltz commentedNevermind. The issue was that in domain access settings, under Content Default and User Defaults, I had the roles defaulted to all domains except US. So I guess that overwrote any settings that were made to the user through the user edit. Hope this helps someone else if they find themselves in this position. Domain_bonus is working fabulous now that that is cleared up.
Comment #11
agentrickard