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:
Jean-Philippe Lang 2009-05-10 11:17:23 +00:00
parent 682c5d1113
commit 88532b6817
1 changed files with 1 additions and 0 deletions

View File

@ -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