]> source.dussan.org Git - redmine.git/commitdiff
Test broken by r16381 (#25289).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 8 Mar 2017 21:37:13 +0000 (21:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 8 Mar 2017 21:37:13 +0000 (21:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16384 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/member.rb

index 61cec0d7970474f7dc40da423f386866e0b51fe6..d709f5ff7da4c8ff31db0409b2448a53108fd8b4 100644 (file)
@@ -183,7 +183,7 @@ class Member < ActiveRecord::Base
     members = []
     if attributes
       project_ids = Array.wrap(attributes[:project_ids] || attributes[:project_id])
-      role_ids = attributes[:role_ids]
+      role_ids = Array.wrap(attributes[:role_ids])
       project_ids.each do |project_id|
         member = Member.find_or_new(project_id, principal)
         member.role_ids |= role_ids