diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-01 15:45:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-01 15:45:23 +0000 |
commit | 268b474f53eddba386094272af456228aba4758a (patch) | |
tree | 38a82278b97708428e0f9410c5c093057865eb50 | |
parent | 357fa10bbd0f75ba75236367d91a4cbfc99dd5bc (diff) | |
download | redmine-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.rb | 2 |
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) |