Commit ed9e5098 authored by jplang's avatar jplang

Code cleanup.

git-svn-id: https://svn.redmine.org/redmine/trunk@11291 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 219f99de
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment