When the account fieldset is split, check if role field exists

Created on 30 May 2024, 11 months ago

Problem/Motivation

Roleassign checks the core account fieldset to overwrite the roles field.
However, when using Account field split the role field can be hidden.
Roleassign does not check this situation. The roleassign field is rendered, but roles are not updated on user save.

Steps to reproduce

Install and enable Account field split .
Hide the roles field in the form mode manager.
Edit a user, there is an 'Assignable roles' field.
When saving the user, the roles are not updated.

Proposed resolution

Rewrite the condition so splitted account variables are properly handled.

Remaining tasks

Create a gereric solution to check for $form['account']['roles].

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium jurgenr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024