Skip to content
Browse files

[#3371 #3372] Fixed a bug where a member could have a nil user.

This is caused by the Redmine Core allowing Groups to be members without
having a user associated with the member.
  • Loading branch information...
1 parent f3b42ba commit 87604441eab57e13fb1ef25bd48fc5800f387d2f @edavis10 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/reports/report_helper.rb
View
2 lib/reports/report_helper.rb
@@ -25,7 +25,7 @@ def role_ids=(v)
v.each do |id|
role = Role.find_by_id(id.to_i)
if role
- self.users += role.members.collect(&:user).uniq
+ self.users += role.members.collect(&:user).uniq.compact
@selected_role_ids ||= []
@selected_role_ids << role.id
end

0 comments on commit 8760444

Please sign in to comment.
Something went wrong with that request. Please try again.