diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-30 21:31:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-30 21:31:13 +0000 |
commit | bf2613a02b6a463d7ead58bc76e7bf5003b50c24 (patch) | |
tree | 070690ee1d4db7c5eac19bce6e2723bb701384cb /app | |
parent | a0158eff9643b836488bf40667669d07d8653429 (diff) | |
download | redmine-bf2613a02b6a463d7ead58bc76e7bf5003b50c24.tar.gz redmine-bf2613a02b6a463d7ead58bc76e7bf5003b50c24.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11291 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue_query.rb | 8 |
1 files 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 |