Closed (fixed)
Project:
RoleAssign
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2021 at 21:55 UTC
Updated:
29 Apr 2024 at 09:09 UTC
Jump to comment: Most recent
The RoleAssign form widget is inserted to the user_register_form and user_form form ids, but not into custom form modes for the user entity.
Modify roleassign_form_alter() to check the entity type of the form, rather than the form id.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hipp2bsquare commentedI have pushed a fix up to the issue fork.
Comment #4
hipp2bsquare commentedComment #5
hipp2bsquare commentedI'm going to make a new version of this patch for the 2.0.x branch.
Comment #6
hipp2bsquare commentedComment #8
hipp2bsquare commentedPlease review MR !6, which supports custom user form modes on RoleAssign 2.0.x.
It identifies user form modes by checking the base form id. If the base form is the user form, then the form id is added to the $user_forms array:
I then made the user forms code the default case on the switch() statement.
Comment #9
hipp2bsquare commentedComment #10
svendecabooterLooks good to me. Thanks for the MR!
Comment #11
svendecabooter