Skip to content

[BUG] Backend roles section of Create User page allows blank backend role #1307

@cwperks

Description

@cwperks

What is the bug?

The user creation screen allows a user to continue to add backend roles even if no text is entered. In addition to creating blank roles, the remove button is always enabled even if no text is entered. If there is only one backend role, the remove button will blank out the text that has been filled. If there is more than one role then remove will remove the entire row.

Screen Shot 2023-01-23 at 10 24 00 AM

Blank backend roles do show up for the logged in user with a blank backend role:

Screen Shot 2023-01-23 at 10 27 41 AM

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to Security -> Internal Users
  2. Create a User
  3. Click on Add another backend role

What is the expected behavior?

The backend role should not be blank before a new one can be added

Tested on 2.5.0

Metadata

Metadata

Assignees

Labels

CCICollege Contributor InitiativebugSomething isn't workinggood first issueGood for newcomerstriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions