diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-08 21:37:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-08 21:37:13 +0000 |
commit | d171aa83988b08e1aa3a0a23345635af0db83f1e (patch) | |
tree | 6ca302b76f759dac2de2b2aa832e4d9eabef3897 | |
parent | ff6d8c6f5c2eac2cddec200f3c3b5d2c1366d349 (diff) | |
download | redmine-d171aa83988b08e1aa3a0a23345635af0db83f1e.tar.gz redmine-d171aa83988b08e1aa3a0a23345635af0db83f1e.zip |
Test broken by r16381 (#25289).
git-svn-id: http://svn.redmine.org/redmine/trunk@16384 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/member.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 61cec0d79..d709f5ff7 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -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 |