From 88532b6817d6138a32a76b0e49f6fe8d208785e8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 May 2009 11:17:23 +0000 Subject: [PATCH] Fixes project members copy with multiple roles. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2728 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/project.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/project.rb b/app/models/project.rb index 922f522f1..64a5e98c8 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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