Fixes migration scripts broken by r2726.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2922 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6224f7caca
commit
0ac07afc67
|
@ -284,7 +284,7 @@ task :migrate_from_mantis => :environment do
|
|||
# Project members
|
||||
project.members.each do |member|
|
||||
m = Member.new :user => User.find_by_id(users_map[member.user_id]),
|
||||
:role => ROLE_MAPPING[member.access_level] || DEFAULT_ROLE
|
||||
:roles => [ROLE_MAPPING[member.access_level] || DEFAULT_ROLE]
|
||||
m.project = p
|
||||
m.save
|
||||
end
|
||||
|
|
|
@ -263,7 +263,7 @@ namespace :redmine do
|
|||
elsif TracPermission.find_by_username_and_action(username, 'developer')
|
||||
role = ROLE_MAPPING['developer']
|
||||
end
|
||||
Member.create(:user => u, :project => @target_project, :role => role)
|
||||
Member.create(:user => u, :project => @target_project, :roles => [role])
|
||||
u.reload
|
||||
end
|
||||
u
|
||||
|
|
Loading…
Reference in New Issue