Fixes project members copy with multiple roles.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2728 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
682c5d1113
commit
88532b6817
|
@ -340,6 +340,7 @@ class Project < ActiveRecord::Base
|
|||
project.members.each do |member|
|
||||
new_member = Member.new
|
||||
new_member.attributes = member.attributes.dup.except("project_id")
|
||||
new_member.role_ids = member.role_ids.dup
|
||||
new_member.project = self
|
||||
self.members << new_member
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue