The key is simply mismatched to work with what's being provided in hook extra fields. Patch attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

Issue summary: View changes
Status: Needs review » Postponed (maintainer needs more info)

Works for me without the patch. Which form are you checking?

fearlsgroove’s picture

I 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.

agentrickard’s picture

Edit user form respects this setting, so it's the create form.

agentrickard’s picture

Interesting. 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.

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Needs review
agentrickard’s picture

Review?

fearlsgroove’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me! Still works with weight removed.

joshua.boltz’s picture

I'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.

joshua.boltz’s picture

Of 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.

joshua.boltz’s picture

Nevermind. 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.

agentrickard’s picture

Status: Reviewed & tested by the community » Fixed

  • agentrickard committed 3df6179 on 7.x-3.x
    Issue #2106803 by agentrickard, fearlsgroove: Domain access user form...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.