Include issues asigned to user's groups when using "assigned to me" filter (#2964).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6332 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
+8
-1
@@ -487,7 +487,14 @@ class Query < ActiveRecord::Base
|
||||
|
||||
# "me" value subsitution
|
||||
if %w(assigned_to_id author_id watcher_id).include?(field)
|
||||
v.push(User.current.logged? ? User.current.id.to_s : "0") if v.delete("me")
|
||||
if v.delete("me")
|
||||
if User.current.logged?
|
||||
v.push(User.current.id.to_s)
|
||||
v += User.current.group_ids.map(&:to_s) if field == 'assigned_to_id'
|
||||
else
|
||||
v.push("0")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if field =~ /^cf_(\d+)$/
|
||||
|
||||
Reference in New Issue
Block a user