summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-01 15:45:23 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-01 15:45:23 +0000
commit268b474f53eddba386094272af456228aba4758a (patch)
tree38a82278b97708428e0f9410c5c093057865eb50
parent357fa10bbd0f75ba75236367d91a4cbfc99dd5bc (diff)
downloadredmine-268b474f53eddba386094272af456228aba4758a.tar.gz
redmine-268b474f53eddba386094272af456228aba4758a.zip
Rails 6.1: fix set roleids (#29914, #32935).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20899 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/member.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/member.rb b/app/models/member.rb
index f7b4038f5..5cf7620de 100644
--- a/app/models/member.rb
+++ b/app/models/member.rb
@@ -76,6 +76,8 @@ class Member < ActiveRecord::Base
if member_roles_to_destroy.any?
member_roles_to_destroy.each(&:destroy)
end
+ member_roles.reload
+ super(ids)
end
def <=>(member)