]> source.dussan.org Git - redmine.git/commitdiff
Rails 6.1: fix set roleids (#29914, #32935).
authorGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:45:23 +0000 (15:45 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 1 Apr 2021 15:45:23 +0000 (15:45 +0000)
Patch by Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@20899 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/member.rb

index f7b4038f5e12171b228b52384ca19b195828ad76..5cf7620de4c3c0ff789e0b05b78041e2ee6e140b 100644 (file)
@@ -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)