From bf2613a02b6a463d7ead58bc76e7bf5003b50c24 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 30 Jan 2013 21:31:13 +0000 Subject: [PATCH] Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11291 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_query.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 0fb184ea7..17c6962ff 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -350,12 +350,8 @@ class IssueQuery < Query groups ||= [] members_of_groups = groups.inject([]) {|user_ids, group| - if group && group.user_ids.present? - user_ids << group.user_ids - user_ids << group.id - end - user_ids.flatten.uniq.compact - }.sort.collect(&:to_s) + user_ids + group.user_ids + [group.id] + }.uniq.compact.sort.collect(&:to_s) '(' + sql_for_field("assigned_to_id", operator, members_of_groups, Issue.table_name, "assigned_to_id", false) + ')' end