Skip to content

Commit

Permalink
Merge pull request #34896 from dimagi/es/default-role
Browse files Browse the repository at this point in the history
Don't default to a role in web user invite
  • Loading branch information
esoergel authored Jul 23, 2024
2 parents d1c2bae + 678e07d commit d8adfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corehq/apps/registration/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def __init__(self, data=None, excluded_emails=None, is_add_user=None,
super(AdminInvitesUserForm, self).__init__(domain=domain, data=data, **kwargs)
self.can_edit_tableau_config = can_edit_tableau_config
domain_obj = Domain.get_by_name(domain)
self.fields['role'].choices = role_choices
self.fields['role'].choices = [('', _("Select a role"))] + role_choices
if domain_obj:
if domain_has_privilege(domain_obj.name, privileges.APP_USER_PROFILES):
self.fields['profile'] = forms.ChoiceField(choices=(), label="Profile", required=False)
Expand Down

0 comments on commit d8adfa2

Please sign in to comment.