Fixed: <<me>> doesn't appear in the drop down filters on a project issue list.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@885 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d0af24870e
commit
040cfa6ae2
|
@ -126,10 +126,10 @@ class Query < ActiveRecord::Base
|
||||||
"done_ratio" => { :type => :integer, :order => 13 }}
|
"done_ratio" => { :type => :integer, :order => 13 }}
|
||||||
|
|
||||||
user_values = []
|
user_values = []
|
||||||
|
user_values << ["<< #{l(:label_me)} >>", "me"] if executed_by
|
||||||
if project
|
if project
|
||||||
user_values += project.users.collect{|s| [s.name, s.id.to_s] }
|
user_values += project.users.collect{|s| [s.name, s.id.to_s] }
|
||||||
elsif executed_by
|
elsif executed_by
|
||||||
user_values << ["<< #{l(:label_me)} >>", "me"] if executed_by
|
|
||||||
# members of the user's projects
|
# members of the user's projects
|
||||||
user_values += executed_by.projects.collect(&:users).flatten.uniq.sort.collect{|s| [s.name, s.id.to_s] }
|
user_values += executed_by.projects.collect(&:users).flatten.uniq.sort.collect{|s| [s.name, s.id.to_s] }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue