Skip to content

Commit b33b23d

Browse files
committed
Hotfix: Display issue in the Delegate Report region user config dropdown
1 parent 348cab5 commit b33b23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/users/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
113113
<% if @user.staff_or_any_delegate? && (current_user.can_view_all_users? || current_user == @user) %>
114114
<%= f.input :receive_delegate_reports, disabled: !editable_fields.include?(:receive_delegate_reports) %>
115-
<%= f.input :delegate_reports_region, as: :grouped_select, collection: region_options_hash(real_only: true), group_method: :second, disabled: !editable_fields.include?(:delegate_reports_region) %>
115+
<%= f.input :delegate_reports_region, as: :grouped_select, collection: region_options_hash(real_only: true), group_method: :second, selected: @user.delegate_reports_region_id, disabled: !editable_fields.include?(:delegate_reports_region) %>
116116
<% end %>
117117
118118
<%= f.submit t('.save'), class: "btn btn-primary" %>

0 commit comments

Comments
 (0)