Skip to content

Commit 8aa4fe3

Browse files
committed
fix removal of user_permission if there was any validation error on user form
1 parent 10770ef commit 8aa4fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/admin/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
qc1_observer_ids: [], qc2_observer_ids: [],
1111
managed_observer_ids: [],
1212
responsible_for_country_ids: [],
13-
user_permission_attributes: [:user_role]
13+
user_permission_attributes: [:id, :user_role]
1414

1515
filter :country, as: :select, collection: -> { Country.joins(:users).by_name_asc }
1616
filter :operator

0 commit comments

Comments
 (0)