Describe the bug
Creating a new user in the participants menu under specific conditions causes backend to throw the following error:
ERROR:openslides_backend.shared.handlers.base_handler:Error occured on index 0: Action user.create: data.structure_level_ids must be array
Inspecting the Action Data reveals that that the field structure_levels_ids is set to None, which is not a valid value
How to Reproduce
- Go to Participants of a Meeting
- Create a new User
- Set the email and username to "test@test.com" (both of them)
- Click Next
- Click Save
- Error occurs
This error does not occur, when the email is left empty in the first menu and then set in the second menu.
Expected behavior
The field structure_levels_ids is set to [] when no structure level IDs are present or left out entirely, so that user creation can work without error.
Additional context
This bug does not occur in the demo, but does occur in latest main.
Describe the bug
Creating a new user in the participants menu under specific conditions causes backend to throw the following error:
ERROR:openslides_backend.shared.handlers.base_handler:Error occured on index 0: Action user.create: data.structure_level_ids must be arrayInspecting the Action Data reveals that that the field
structure_levels_idsis set to None, which is not a valid valueHow to Reproduce
This error does not occur, when the email is left empty in the first menu and then set in the second menu.
Expected behavior
The field
structure_levels_idsis set to[]when no structure level IDs are present or left out entirely, so that user creation can work without error.Additional context
This bug does not occur in the demo, but does occur in latest
main.