summaryrefslogtreecommitdiffstats
path: root/lib/tasks/migrate_from_mantis.rake
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-11 10:08:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-10-11 10:08:22 +0000
commit0ac07afc67000f38712ee5d62ffd055daa2bdc46 (patch)
tree6babf82a41085efb383bd48ec56bee43eb7c1d63 /lib/tasks/migrate_from_mantis.rake
parent6224f7cacab96ae35909a451e22511e672bbb4c8 (diff)
downloadredmine-0ac07afc67000f38712ee5d62ffd055daa2bdc46.tar.gz
redmine-0ac07afc67000f38712ee5d62ffd055daa2bdc46.zip
Fixes migration scripts broken by r2726.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2922 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/migrate_from_mantis.rake')
-rw-r--r--lib/tasks/migrate_from_mantis.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/migrate_from_mantis.rake b/lib/tasks/migrate_from_mantis.rake
index 499dc7b93..d27ef77d3 100644
--- a/lib/tasks/migrate_from_mantis.rake
+++ b/lib/tasks/migrate_from_mantis.rake
@@ -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