]> source.dussan.org Git - redmine.git/commitdiff
Fixes project members copy with multiple roles.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 11:17:23 +0000 (11:17 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 11:17:23 +0000 (11:17 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2728 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project.rb

index 922f522f18ea9e7b4cb80898bf71be9ac6de8578..64a5e98c8ef4a5a1627c012774a8ba7c2913a507 100644 (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